public class AnnotationProcessor
extends javax.annotation.processing.AbstractProcessor
Constructor and Description |
---|
AnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes()
Here you have to specify for which annotations this annotation processor should be registered for.
|
javax.lang.model.SourceVersion |
getSupportedSourceVersion()
To avoid a warning about source version when the annotation processor is run,
we specify that we handle the latest source version that the current execution environment supports:
Or from JRE7, use
|
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv) |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment env) |
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init
in interface javax.annotation.processing.Processor
init
in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface javax.annotation.processing.Processor
getSupportedAnnotationTypes
in class javax.annotation.processing.AbstractProcessor
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor