@SupportedAnnotationTypes(value="javax.persistence.Entity") @SupportedSourceVersion(value=RELEASE_7) @SupportedOptions(value="tool.jpa.properties") public class AnnotationProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_OPTION
The option of the annotation processor to set output directory.
|
processingEnv
Constructor and Description |
---|
AnnotationProcessor()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
init(ProcessingEnvironment processingEnv)
Initializes the processor with the processing environment.
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
Processes the annotations given in the
annotations variable. |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
public static final String PROPERTIES_OPTION
public void init(@Nonnull ProcessingEnvironment processingEnv)
IllegalStateException
will be thrown if
this method is called more than once on the same object.init
in interface Processor
init
in class AbstractProcessor
processingEnv
- environment to access facilities the tool framework provides to the processor.IllegalStateException
- if this method is called more than once.public boolean process(@Nonnull Set<? extends TypeElement> annotations, @Nonnull RoundEnvironment roundEnv)
annotations
variable.process
in interface Processor
process
in class AbstractProcessor
annotations
- the annotations that are handled.roundEnv
- the round environment to handle annotations.false
because this processor never claims an annotation.Copyright © 2024. All rights reserved.