Package com.querydsl.apt
Class AbstractQuerydslProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.querydsl.apt.AbstractQuerydslProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
JDOAnnotationProcessor,JPAAnnotationProcessor,MorphiaAnnotationProcessor,QuerydslAnnotationProcessor,RooAnnotationProcessor
AbstractQuerydslProcessor is the base class for Querydsl annotation processors and
contains the main processing logic. The subclasses just provide the configuration.- Author:
- tiwe
-
Field Summary
FieldsFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<TypeElement>protected abstract ConfigurationcreateConfiguration(RoundEnvironment roundEnv) protected TypeElementHandlercreateElementHandler(TypeMappings typeMappings, QueryTypeFactory queryTypeFactory) protected ExtendedTypeFactorycreateTypeFactory(Set<Class<? extends Annotation>> entityAnnotations, TypeMappings typeMappings, QueryTypeFactory queryTypeFactory) protected StringgetClassName(EntityType model) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) protected voidprotected voidvalidateInits(EntityType entityType, Property property) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, init, isInitialized
-
Field Details
-
ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS
-
-
Constructor Details
-
AbstractQuerydslProcessor
public AbstractQuerydslProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
createElementHandler
protected TypeElementHandler createElementHandler(TypeMappings typeMappings, QueryTypeFactory queryTypeFactory) -
createTypeFactory
protected ExtendedTypeFactory createTypeFactory(Set<Class<? extends Annotation>> entityAnnotations, TypeMappings typeMappings, QueryTypeFactory queryTypeFactory) -
processAnnotations
protected void processAnnotations() -
collectElements
-
validateInits
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptionsin interfaceProcessor- Overrides:
getSupportedOptionsin classAbstractProcessor
-
getClassName
-
createConfiguration
-