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 ClassesModifier and TypeClassDescriptionprotected static interfaceprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Elementsprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected TypesFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringdeepClone(TypeMirror fieldType, String parameterName) protected Stringprotected TypeMirrordetermineFieldType(String fieldName, HashSet<ExecutableElement> methods) protected Stream<ExecutableElement>fieldGetters(Map<String, HashSet<ExecutableElement>> methodsPerAttribute) protected voidprotected Stream<ExecutableElement>getCollectionKey(TypeMirror fieldType, ExecutableElement callingMethod) protected abstract AbstractGenerateEntityImplementationsProcessor.Generator[]protected StringinterfaceToImplementation(TypeElement typeElement, String parameter) protected booleanisBoxedPrimitiveType(TypeMirror fieldType) protected booleanisCollection(TypeMirror fieldType) protected booleanisEnumType(TypeMirror fieldType) protected booleanisImmutableFinalType(TypeMirror fieldType) protected booleanisKnownCollectionOfImmutableFinalTypes(TypeMirror fieldType) protected booleanisPrimitiveType(TypeMirror fieldType) protected StringisUndefined(String parameterName) protected Map<String,HashSet<ExecutableElement>> booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) protected StringremoveUndefined(TypeMirror fieldType, String parameterName) protected booleanMethods 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:
processin interfaceProcessor- Specified by:
processin 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
-