public class PatternsProcessor extends AbstractProcessor
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.
processingEnv| Constructor and Description |
|---|
PatternsProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
Gathers annotated elements, transforms elements to a generator model and generates the model to code.
|
getCompletions, getSupportedOptions, init, isInitializedpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorannotations - the annotation types requested to be processedroundEnv - environment for information about the current and prior roundCopyright © 2019. All Rights Reserved.