public class MultiModuleProcessor extends AbstractProcessor
SingleAnnotationProcessorModules.| 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, isInitializedprotected 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 Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected <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 ProcessorgetSupportedAnnotationTypes in class AbstractProcessorCopyright © 2013–2014. All rights reserved.