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
Modifier and TypeClassDescriptionprotected static interface
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Elements
protected static final String
protected static final String
protected static final String
protected static final String
protected Types
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
deepClone
(TypeMirror fieldType, String parameterName) protected String
protected TypeMirror
determineFieldType
(String fieldName, HashSet<ExecutableElement> methods) protected Stream<ExecutableElement>
fieldGetters
(Map<String, HashSet<ExecutableElement>> methodsPerAttribute) protected void
protected Stream<ExecutableElement>
getCollectionKey
(TypeMirror fieldType, ExecutableElement callingMethod) protected abstract AbstractGenerateEntityImplementationsProcessor.Generator[]
protected String
interfaceToImplementation
(TypeElement typeElement, String parameter) protected boolean
isBoxedPrimitiveType
(TypeMirror fieldType) protected boolean
isCollection
(TypeMirror fieldType) protected boolean
isEnumType
(TypeMirror fieldType) protected boolean
isImmutableFinalType
(TypeMirror fieldType) protected boolean
isKnownCollectionOfImmutableFinalTypes
(TypeMirror fieldType) protected boolean
isPrimitiveType
(TypeMirror fieldType) protected String
isUndefined
(String parameterName) protected Map<String,
HashSet<ExecutableElement>> boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) protected String
removeUndefined
(TypeMirror fieldType, String parameterName) protected boolean
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Field Details
-
FQN_DEEP_CLONER
- See Also:
-
FQN_ENTITY_FIELD
- See Also:
-
FQN_HAS_ENTITY_FIELD_DELEGATE
- See Also:
-
FQN_ENTITY_FIELD_DELEGATE
- See Also:
-
elements
-
types
-
-
Constructor Details
-
AbstractGenerateEntityImplementationsProcessor
public AbstractGenerateEntityImplementationsProcessor()
-
-
Method Details
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getCollectionKey
-
testAnnotationElement
-
afterAnnotationProcessing
protected void afterAnnotationProcessing() -
getGenerators
-
getAllAbstractMethods
-
methodsPerAttributeMapping
-
determineAttributeFromMethodName
-
fieldGetters
protected Stream<ExecutableElement> fieldGetters(Map<String, HashSet<ExecutableElement>> methodsPerAttribute) -
isImmutableFinalType
-
isKnownCollectionOfImmutableFinalTypes
-
isCollection
-
deepClone
-
removeUndefined
-
isUndefined
-
isEnumType
-
isPrimitiveType
-
isBoxedPrimitiveType
-
interfaceToImplementation
-
determineFieldType
-
generatedAnnotation
-