Class AbstractGenerateEntityImplementationsProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- org.keycloak.models.map.processor.AbstractGenerateEntityImplementationsProcessor
-
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
GenerateEntityImplementationsProcessor
,GenerateHotRodEntityImplementationsProcessor
@SupportedSourceVersion(RELEASE_8) public abstract class AbstractGenerateEntityImplementationsProcessor extends AbstractProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
AbstractGenerateEntityImplementationsProcessor.Generator
protected static class
AbstractGenerateEntityImplementationsProcessor.NameFirstComparator
-
Field Summary
Fields Modifier and Type Field Description protected Elements
elements
protected static String
FQN_DEEP_CLONER
protected static String
FQN_ENTITY_FIELD
protected static String
FQN_ENTITY_FIELD_DELEGATE
protected static String
FQN_HAS_ENTITY_FIELD_DELEGATE
protected Types
types
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description AbstractGenerateEntityImplementationsProcessor()
-
Method Summary
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
-
-
-
Field Detail
-
FQN_DEEP_CLONER
protected static final String FQN_DEEP_CLONER
- See Also:
- Constant Field Values
-
FQN_ENTITY_FIELD
protected static final String FQN_ENTITY_FIELD
- See Also:
- Constant Field Values
-
FQN_HAS_ENTITY_FIELD_DELEGATE
protected static final String FQN_HAS_ENTITY_FIELD_DELEGATE
- See Also:
- Constant Field Values
-
FQN_ENTITY_FIELD_DELEGATE
protected static final String FQN_ENTITY_FIELD_DELEGATE
- See Also:
- Constant Field Values
-
elements
protected Elements elements
-
types
protected Types types
-
-
Method Detail
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getCollectionKey
public ExecutableElement getCollectionKey(TypeMirror fieldType, ExecutableElement callingMethod)
-
testAnnotationElement
protected boolean testAnnotationElement(TypeElement kind)
-
afterAnnotationProcessing
protected void afterAnnotationProcessing()
-
getGenerators
protected abstract AbstractGenerateEntityImplementationsProcessor.Generator[] getGenerators()
-
getAllAbstractMethods
protected Stream<ExecutableElement> getAllAbstractMethods(TypeElement e)
-
methodsPerAttributeMapping
protected Map<String,HashSet<ExecutableElement>> methodsPerAttributeMapping(TypeElement e)
-
determineAttributeFromMethodName
protected String determineAttributeFromMethodName(ExecutableElement e)
-
fieldGetters
protected Stream<ExecutableElement> fieldGetters(Map<String,HashSet<ExecutableElement>> methodsPerAttribute)
-
isImmutableFinalType
protected boolean isImmutableFinalType(TypeMirror fieldType)
-
isKnownCollectionOfImmutableFinalTypes
protected boolean isKnownCollectionOfImmutableFinalTypes(TypeMirror fieldType)
-
isCollection
protected boolean isCollection(TypeMirror fieldType)
-
deepClone
protected String deepClone(TypeMirror fieldType, String parameterName)
-
removeUndefined
protected String removeUndefined(TypeMirror fieldType, String parameterName)
-
isEnumType
protected boolean isEnumType(TypeMirror fieldType)
-
isPrimitiveType
protected boolean isPrimitiveType(TypeMirror fieldType)
-
isBoxedPrimitiveType
protected boolean isBoxedPrimitiveType(TypeMirror fieldType)
-
interfaceToImplementation
protected String interfaceToImplementation(TypeElement typeElement, String parameter)
-
determineFieldType
protected TypeMirror determineFieldType(String fieldName, HashSet<ExecutableElement> methods)
-
generatedAnnotation
protected void generatedAnnotation(PrintWriter pw)
-
-