@IncrementalAnnotationProcessor(value=AGGREGATING) @AutoService(value=javax.annotation.processing.Processor.class) public final class RootProcessor extends BaseProcessor
| Constructor and Description |
|---|
RootProcessor() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<java.lang.String> |
getSupportedAnnotationTypes() |
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnvironment) |
void |
postRoundProcess(javax.annotation.processing.RoundEnvironment roundEnv)
Used to perform post processing at the end of a round.
|
void |
processEach(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.Element element)
Called for each element in a round that uses a supported annotation.
|
claimAnnotations, delayErrors, getElementUtils, getErrorHandler, getMessager, getProcessingEnv, getSupportedSourceVersion, getTypeUtils, preRoundProcess, processpublic void init(javax.annotation.processing.ProcessingEnvironment processingEnvironment)
init in interface javax.annotation.processing.Processorinit in class BaseProcessorpublic com.google.common.collect.ImmutableSet<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface javax.annotation.processing.ProcessorgetSupportedAnnotationTypes in class javax.annotation.processing.AbstractProcessorpublic void processEach(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.Element element)
throws java.lang.Exception
BaseProcessorprocessEach in class BaseProcessorjava.lang.Exceptionpublic void postRoundProcess(javax.annotation.processing.RoundEnvironment roundEnv)
throws java.lang.Exception
BaseProcessorNote: this will not be called if an exception is thrown during #processEach() -- if we have already detected errors on an annotated element, performing post processing on an aggregate will just produce more (perhaps non-deterministic) errors.
postRoundProcess in class BaseProcessorjava.lang.Exception