Package com.redis.om.spring.metamodel
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 Summary
FieldsFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic StringjavaNameFromExternal(String externalName) static StringnameFromExternal(String externalName) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) static Stringstatic StringreplaceIfJavaUsedWord(String word) static StringstaticField(String externalName) Returns a static field name representation of the specified camel-cased string.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Field Details
-
REPLACEMENT_CHARACTER
-
-
Constructor Details
-
MetamodelGenerator
public MetamodelGenerator()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
staticField
Returns a static field name representation of the specified camel-cased string.- Parameters:
externalName- the string- Returns:
- the static field name representation
-
javaNameFromExternal
-
nameFromExternal
-
replaceIfJavaUsedWord
-
replaceIfIllegalJavaIdentifierCharacter
-