Note:
If javac complains [WARNING] No processor claimed any of these annotations: ...
we need to provide the compiler arg -Xlint:-processing.
See JDK-6999068 bug.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private void | |
| 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. |
| public boolean | Returns: whether or not the set of annotation types are claimed by this processorthe annotation types requested to be processed annotations, RoundEnvironment environment for information about the current and prior round roundEnv)Implements abstract javax. Implements javax. Gathers annotated elements, transforms elements to a generator model and generates the model to code. |
| private Set |
| PatternsProcessor | back to summary |
|---|---|
| public PatternsProcessor() | |
| deriveClassName | back to summary |
|---|---|
| private String deriveClassName(ClassModel classModel) | |
| generate | back to summary |
|---|---|
| private void generate(Set<ClassModel> classModels) | |
| 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.
| |
| process | back to summary |
|---|---|
| public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Implements abstract javax. Implements javax. Gathers annotated elements, transforms elements to a generator model and generates the model to code.
| |
| transform | back to summary |
|---|---|
| private Set | |