public abstract class AbstractQuerydslProcessor extends AbstractProcessor
AbstractQuerydslProcessor
is the base class for Querydsl annotation processors and
contains the main processing logic. The subclasses just provide the configuration.Modifier and Type | Field and Description |
---|---|
static Boolean |
ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS |
processingEnv
Constructor and Description |
---|
AbstractQuerydslProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Set<TypeElement> |
collectElements() |
protected abstract Configuration |
createConfiguration(RoundEnvironment roundEnv) |
protected TypeElementHandler |
createElementHandler(TypeMappings typeMappings,
QueryTypeFactory queryTypeFactory) |
protected ExtendedTypeFactory |
createTypeFactory(Set<Class<? extends Annotation>> entityAnnotations,
TypeMappings typeMappings,
QueryTypeFactory queryTypeFactory) |
protected String |
getClassName(EntityType model) |
Set<String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
processAnnotations() |
protected void |
validateInits(EntityType entityType,
Property property) |
getCompletions, getSupportedAnnotationTypes, init, isInitialized
public static final Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected TypeElementHandler createElementHandler(TypeMappings typeMappings, QueryTypeFactory queryTypeFactory)
protected ExtendedTypeFactory createTypeFactory(Set<Class<? extends Annotation>> entityAnnotations, TypeMappings typeMappings, QueryTypeFactory queryTypeFactory)
protected void processAnnotations()
protected Set<TypeElement> collectElements()
protected void validateInits(EntityType entityType, Property property)
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public Set<String> getSupportedOptions()
getSupportedOptions
in interface Processor
getSupportedOptions
in class AbstractProcessor
protected String getClassName(EntityType model)
protected abstract Configuration createConfiguration(RoundEnvironment roundEnv)
Copyright © 2007–2020 Querydsl. All rights reserved.