public class MultiModuleProcessor extends AbstractProcessor
SingleAnnotationProcessorModule
s.Modifier and Type | Field and Description |
---|---|
protected APUtils |
utils |
processingEnv
Constructor and Description |
---|
MultiModuleProcessor(SingleAnnotationProcessorModule<?>... modules)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected <A extends Annotation> |
dispatchModule(SingleAnnotationProcessorModule<A> module,
RoundEnvironment roundEnv)
Dispatch the processing of a
SingleAnnotationProcessorModule during a round of
annotation processing. |
Set<String> |
getSupportedAnnotationTypes() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, getSupportedSourceVersion, isInitialized
protected APUtils utils
public MultiModuleProcessor(SingleAnnotationProcessorModule<?>... modules)
modules
- the processor modules, which are dispatched in the given
order.public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected <A extends Annotation> boolean dispatchModule(SingleAnnotationProcessorModule<A> module, RoundEnvironment roundEnv)
SingleAnnotationProcessorModule
during a round of
annotation processing.module
- the module to dispatchroundEnv
- the environment for the respective round of annotation processingpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
Copyright © 2013–2014. All rights reserved.