@SupportedOptions(value={"micronaut.processing.incremental","micronaut.processing.annotations"})
public class AggregatingTypeElementVisitorProcessor
extends TypeElementVisitorProcessor
The annotation processed used to execute type element visitors.
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationUtils |
annotationUtils |
protected AnnotationProcessingOutputVisitor |
classWriterOutputVisitor |
protected javax.lang.model.util.Elements |
elementUtils |
protected javax.annotation.processing.Filer |
filer |
protected GenericUtils |
genericUtils |
protected static java.lang.String |
GRADLE_PROCESSING_AGGREGATING
Constant for aggregating processor.
|
protected static java.lang.String |
GRADLE_PROCESSING_ISOLATING
Constant for isolating processor.
|
protected JavaVisitorContext |
javaVisitorContext |
protected javax.annotation.processing.Messager |
messager |
protected static java.lang.String |
MICRONAUT_PROCESSING_ANNOTATIONS
Annotation processor option used to add additional annotation patterns to process.
|
protected static java.lang.String |
MICRONAUT_PROCESSING_INCREMENTAL
Annotation processor option used to activate incremental processing.
|
protected ModelUtils |
modelUtils |
protected javax.lang.model.util.Types |
typeUtils |
protected io.micronaut.core.convert.value.MutableConvertibleValues<java.lang.Object> |
visitorAttributes |
| Constructor and Description |
|---|
AggregatingTypeElementVisitorProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
error(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
Produce a compile error for the given element and message.
|
protected void |
error(java.lang.String msg,
java.lang.Object... args)
Produce a compile error for the given message.
|
protected java.lang.String |
getIncrementalProcessorType() |
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
protected io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind |
getVisitorKind()
obtains the visitor kind.
|
protected boolean |
isIncremental(javax.annotation.processing.ProcessingEnvironment processingEnv)
Whether incremental compilation is enabled.
|
protected boolean |
isProcessedAnnotation(java.lang.String annotationName)
Return whether the given annotation is processed.
|
protected JavaVisitorContext |
newVisitorContext(javax.annotation.processing.ProcessingEnvironment processingEnv)
Creates the visitor context.
|
protected void |
note(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
Produce a compile note for the given element and message.
|
protected void |
note(java.lang.String msg,
java.lang.Object... args)
Produce a compile note for the given element and message.
|
protected void |
warning(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
Produce a compile warning for the given element and message.
|
protected void |
warning(java.lang.String msg,
java.lang.Object... args)
Produce a compile warning for the given message.
|
findTypeElementVisitors, getIncrementalProcessorKind, getLoadedVisitors, getSupportedOptions, init, processprotected static final java.lang.String MICRONAUT_PROCESSING_INCREMENTAL
protected static final java.lang.String MICRONAUT_PROCESSING_ANNOTATIONS
protected static final java.lang.String GRADLE_PROCESSING_AGGREGATING
protected static final java.lang.String GRADLE_PROCESSING_ISOLATING
protected javax.annotation.processing.Messager messager
protected javax.annotation.processing.Filer filer
protected javax.lang.model.util.Elements elementUtils
protected javax.lang.model.util.Types typeUtils
protected AnnotationUtils annotationUtils
protected GenericUtils genericUtils
protected ModelUtils modelUtils
protected io.micronaut.core.convert.value.MutableConvertibleValues<java.lang.Object> visitorAttributes
protected AnnotationProcessingOutputVisitor classWriterOutputVisitor
protected JavaVisitorContext javaVisitorContext
public AggregatingTypeElementVisitorProcessor()
protected java.lang.String getIncrementalProcessorType()
GRADLE_PROCESSING_AGGREGATING,
GRADLE_PROCESSING_ISOLATINGpublic java.util.Set<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface javax.annotation.processing.ProcessorgetSupportedAnnotationTypes in class TypeElementVisitorProcessorpublic javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessorprotected boolean isProcessedAnnotation(java.lang.String annotationName)
annotationName - The annotation name@NonNull protected JavaVisitorContext newVisitorContext(@NonNull javax.annotation.processing.ProcessingEnvironment processingEnv)
processingEnv - The processing env@NonNull protected io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind getVisitorKind()
protected final void error(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
e - The elementmsg - The messageargs - The string format argsprotected final void error(java.lang.String msg,
java.lang.Object... args)
msg - The messageargs - The string format argsprotected final void warning(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
e - The elementmsg - The messageargs - The string format argsprotected final void warning(java.lang.String msg,
java.lang.Object... args)
msg - The messageargs - The string format argsprotected final void note(javax.lang.model.element.Element e,
java.lang.String msg,
java.lang.Object... args)
e - The elementmsg - The messageargs - The string format argsprotected final void note(java.lang.String msg,
java.lang.Object... args)
msg - The messageargs - The string format argsprotected boolean isIncremental(@NonNull
javax.annotation.processing.ProcessingEnvironment processingEnv)
processingEnv - The processing environment.