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, isInitialized
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
annotations
- the annotation types requested to be processedroundEnv
- environment for information about the current and prior roundCopyright © 2016. All Rights Reserved.