public abstract class AbstractAnnotationProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
protected List<? extends Verifier> |
annotationVerifiers |
protected Context |
context |
protected NotificationGatherer |
notificationGatherer |
protected List<PostProcessor> |
postProcessors |
protected PrinterGatherer |
printer |
protected List<Generator> |
sortedModuleGenerators |
processingEnv
Constructor and Description |
---|
AbstractAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
createContext() |
protected boolean |
doProcess(Set<? extends TypeElement> annotations,
RoundEnvironment env)
Runs the verifiers and generators
|
protected void |
doVerify(List<Module> modules,
MultiModuleAnnotationVerifier moduleAnnotationVerifier) |
protected void |
doVerify(Module module,
ModuleAnnotationVerifier moduleAnnotationVerifier) |
abstract List<? extends Verifier> |
getAnnotationVerifiers()
Retrieve a list of validators for the specified object type
|
protected Context |
getContext() |
abstract List<Generator> |
getGenerators()
Retrieve a list of generators for the specified object type
|
protected abstract Plugin |
getPluginFromVerifier(Verifier verifier)
Given a Generator returns its containing Plugin
|
abstract List<PostProcessor> |
getPostProcessors()
Retrieve a list of post processors for the specified object type
|
protected void |
initialize() |
protected void |
postProcess() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment env)
This method process the annotations.
|
protected void |
runGenerators(List<Generator> sortedGenerators,
List<Module> modules,
List<Component> components) |
protected void |
runVerifiers(List<? extends Verifier> annotationVerifiers,
List<Module> modules,
List<Component> components) |
protected boolean |
typeExists(Set<? extends TypeElement> annotations,
RoundEnvironment env) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
protected Context context
protected NotificationGatherer notificationGatherer
protected List<PostProcessor> postProcessors
protected PrinterGatherer printer
public abstract List<? extends Verifier> getAnnotationVerifiers()
public abstract List<Generator> getGenerators()
public abstract List<PostProcessor> getPostProcessors()
PostProcessor
protected abstract Plugin getPluginFromVerifier(Verifier verifier)
verifier
- Generator used to find its Pluginpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment env)
process
in interface Processor
process
in class AbstractProcessor
annotations
- the annotations processedenv
- the environmentprotected boolean typeExists(Set<? extends TypeElement> annotations, RoundEnvironment env)
protected void runVerifiers(List<? extends Verifier> annotationVerifiers, List<Module> modules, List<Component> components) throws AnnotationVerificationException
AnnotationVerificationException
protected void runGenerators(List<Generator> sortedGenerators, List<Module> modules, List<Component> components) throws GenerationException, Exception
GenerationException
Exception
protected void createContext()
protected Context getContext()
protected void initialize()
protected boolean doProcess(Set<? extends TypeElement> annotations, RoundEnvironment env)
protected void postProcess()
protected void doVerify(Module module, ModuleAnnotationVerifier moduleAnnotationVerifier) throws AnnotationVerificationException
AnnotationVerificationException
protected void doVerify(List<Module> modules, MultiModuleAnnotationVerifier moduleAnnotationVerifier) throws AnnotationVerificationException
AnnotationVerificationException
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.