public abstract class AbstractQuerydslProcessor
extends javax.annotation.processing.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 java.lang.Boolean |
ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS |
Constructor and Description |
---|
AbstractQuerydslProcessor() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<javax.lang.model.element.TypeElement> |
collectElements() |
protected abstract Configuration |
createConfiguration(javax.annotation.processing.RoundEnvironment roundEnv) |
protected TypeElementHandler |
createElementHandler(TypeMappings typeMappings,
QueryTypeFactory queryTypeFactory) |
protected ExtendedTypeFactory |
createTypeFactory(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> entityAnnotations,
TypeMappings typeMappings,
QueryTypeFactory queryTypeFactory) |
protected java.lang.String |
getClassName(EntityType model) |
java.util.Set<java.lang.String> |
getSupportedOptions() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
protected void |
processAnnotations() |
protected void |
validateInits(EntityType entityType,
Property property) |
public static final java.lang.Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor
protected TypeElementHandler createElementHandler(TypeMappings typeMappings, QueryTypeFactory queryTypeFactory)
protected ExtendedTypeFactory createTypeFactory(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> entityAnnotations, TypeMappings typeMappings, QueryTypeFactory queryTypeFactory)
protected void processAnnotations()
protected java.util.Set<javax.lang.model.element.TypeElement> collectElements()
protected void validateInits(EntityType entityType, Property property)
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor
public java.util.Set<java.lang.String> getSupportedOptions()
getSupportedOptions
in interface javax.annotation.processing.Processor
getSupportedOptions
in class javax.annotation.processing.AbstractProcessor
protected java.lang.String getClassName(EntityType model)
protected abstract Configuration createConfiguration(javax.annotation.processing.RoundEnvironment roundEnv)
Copyright © 2007–2021 Querydsl. All rights reserved.