Class MetamodelGenerator

java.lang.Object
javax.annotation.processing.AbstractProcessor
com.redis.om.spring.metamodel.MetamodelGenerator
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes({"com.redis.om.spring.annotations.Document","org.springframework.data.redis.core.RedisHash"}) @SupportedSourceVersion(RELEASE_17) @AutoService(javax.annotation.processing.Processor.class) public final class MetamodelGenerator extends AbstractProcessor
  • Field Details

    • REPLACEMENT_CHARACTER

      public static final Character REPLACEMENT_CHARACTER
  • Constructor Details

    • MetamodelGenerator

      public MetamodelGenerator()
  • Method Details

    • init

      public void init(ProcessingEnvironment env)
      Specified by:
      init in interface Processor
      Overrides:
      init in class AbstractProcessor
    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Specified by:
      process in interface Processor
      Specified by:
      process in class AbstractProcessor
    • staticField

      public static String staticField(String externalName)
      Returns a static field name representation of the specified camel-cased string.
      Parameters:
      externalName - the string
      Returns:
      the static field name representation
    • javaNameFromExternal

      public static String javaNameFromExternal(String externalName)
    • nameFromExternal

      public static String nameFromExternal(String externalName)
    • replaceIfJavaUsedWord

      public static String replaceIfJavaUsedWord(String word)
    • replaceIfIllegalJavaIdentifierCharacter

      public static String replaceIfIllegalJavaIdentifierCharacter(String word)