The getter methods may issue warnings about noteworthy conditions using the facilities available after the processor has been initialized.
Subclasses are free to override the implementation and
specification of any of the methods in this class as long as the
general Processor
contract for that method is obeyed.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected ProcessingEnvironment | processingEnv
Processing environment providing by the tool framework. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private Set | |
| public Iterable | Returns: an empty iterable of completionsImplements javax. Returns an empty iterable of completions. |
| public Set | getSupportedAnnotationTypes()
Implements javax. Returns the names of the annotation interfaces supported by this processor. |
| public Set | Returns: the options recognized by this processor, or an empty set if noneImplements javax. Returns the options recognized by this processor. |
| public SourceVersion | getSupportedSourceVersion()
Implements javax. Returns the latest source version supported by this annotation processor. |
| public synchronized void | init(ProcessingEnvironment
environment to access facilities the tool framework
provides to the processor processingEnv)Implements javax. Initializes the processor with the processing environment. |
| protected synchronized boolean | |
| public abstract boolean | process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
Redeclares javax. Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| processingEnv | back to summary |
|---|---|
| protected ProcessingEnvironment processingEnv Processing environment providing by the tool framework. | |
| AbstractProcessor | back to summary |
|---|---|
| protected AbstractProcessor() Constructor for subclasses to call. | |
| arrayToSet | back to summary |
|---|---|
| private Set | |
| getCompletions | back to summary |
|---|---|
| public Iterable Implements javax. Returns an empty iterable of completions.
| |
| getSupportedAnnotationTypes | back to summary |
|---|---|
| public Set Implements javax. Returns the names of the annotation interfaces supported by this processor. Implementation Specification If the processor class is annotated with
| |
| getSupportedOptions | back to summary |
|---|---|
| public Set Implements javax. Returns the options recognized by this processor. Implementation Specification If the processor class is annotated with | |
| getSupportedSourceVersion | back to summary |
|---|---|
| public SourceVersion getSupportedSourceVersion() Implements javax. Doc from javax. Returns the latest source version supported by this annotation processor. Implementation Specification If the processor class is annotated with
| |
| init | back to summary |
|---|---|
| public synchronized void init(ProcessingEnvironment processingEnv) Implements javax. Doc from javax. Initializes the processor with the processing environment. Implementation Specification Initializes the processor with the processing environment by
setting the
| |
| isInitialized | back to summary |
|---|---|
| protected synchronized boolean isInitialized() Returns
| |
| process | back to summary |
|---|---|
| public abstract boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Redeclares javax. Doc from javax. Processes a set of annotation interfaces on root elements originating
from the prior round and returns whether or not these
annotation interfaces are claimed by this processor. If The input set will be empty if the processor supports
| |