Processor to be invoked by javac.
This class receives options from the Main method through system properties
(ouch!).
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Messager | |
| private File | |
| private Properties | |
| private Types |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private AnnotationVisitor | |
| public Set | getSupportedAnnotationTypes()
Overrides javax. Implements javax. Returns the names of the annotation interfaces supported by this processor. |
| public SourceVersion | getSupportedSourceVersion()
Overrides javax. Implements javax. Returns the latest source version supported by this annotation processor. |
| private String | |
| public synchronized void | init(ProcessingEnvironment
environment to access facilities the tool framework
provides to the processor processingEnv)Overrides javax. Implements javax. Initializes the processor with the processing environment. |
| private boolean | |
| public boolean | process(Set<? extends TypeElement>
the annotation interfaces requested to be processed annotations, RoundEnvironment environment for information about the current and prior round roundEnv)Implements abstract javax. Implements 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. |
| private void | |
| private void |
| format | back to summary |
|---|---|
| private String format | |
| messenger | back to summary |
|---|---|
| private Messager messenger | |
| outDir | back to summary |
|---|---|
| private File outDir | |
| resource | back to summary |
|---|---|
| private Properties resource | |
| typeUtils | back to summary |
|---|---|
| private Types typeUtils | |
| AnnotationProcessorImpl | back to summary |
|---|---|
| public AnnotationProcessorImpl() | |
| createAnnotationVisitor | back to summary |
|---|---|
| private AnnotationVisitor createAnnotationVisitor(TypeElement te) throws IOException | |
| getSupportedAnnotationTypes | back to summary |
|---|---|
| public Set Overrides javax. Implements javax. Doc from javax. Returns the names of the annotation interfaces supported by this processor. | |
| getSupportedSourceVersion | back to summary |
|---|---|
| public SourceVersion getSupportedSourceVersion() Overrides javax. Implements javax. Doc from javax. Returns the latest source version supported by this annotation processor.
| |
| getUsage | back to summary |
|---|---|
| private String getUsage(Option o) | |
| init | back to summary |
|---|---|
| public synchronized void init(ProcessingEnvironment processingEnv) Overrides javax. Implements javax. Doc from javax. Initializes the processor with the processing environment.
| |
| isOptionHidden | back to summary |
|---|---|
| private boolean isOptionHidden(String usage) | |
| process | back to summary |
|---|---|
| public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Implements abstract javax. Implements 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
| |
| scan | back to summary |
|---|---|
| private void scan(TypeElement decl, AnnotationVisitor visitor) | |
| scan | back to summary |
|---|---|
| private void scan(Element f, AnnotationVisitor visitor) | |