| java.lang.Object javax.annotation.processing.AbstractProcessor
All known Subclasses: com.sun.tools.javac.processing.PrintingProcessor, com.sun.tools.javac.sym.CreateSymbols,
AbstractProcessor | abstract public class AbstractProcessor implements Processor(Code) | | An abstract annotation processor designed to be a convenient
superclass for most concrete annotation processors. This class
examines annotation values to compute the
,
, and
supported by its
subtypes.
The getter methods may
about noteworthy conditions using the facilities available
after the processor has been
.
Subclasses are free to override the implementation and
specification of any of the methods in this class as long as the
general
javax.annotation.processing.Processor Processor contract for that method is obeyed.
author: Joseph D. Darcy author: Scott Seligman author: Peter von der Ahé version: 1.14 07/05/05 since: 1.6 |
Constructor Summary | |
protected | AbstractProcessor() Constructor for subclasses to call. |
AbstractProcessor | protected AbstractProcessor()(Code) | | Constructor for subclasses to call.
|
getSupportedAnnotationTypes | public Set<String> getSupportedAnnotationTypes()(Code) | | If the processor class is annotated with
SupportedAnnotationTypes , return an unmodifiable set with the
same set of strings as the annotation. If the class is not so
annotated, an empty set is returned.
the names of the annotation types supported by thisprocessor, or an empty set if none |
getSupportedOptions | public Set<String> getSupportedOptions()(Code) | | If the processor class is annotated with
SupportedOptions , return an unmodifiable set with the same set
of strings as the annotation. If the class is not so
annotated, an empty set is returned.
the options recognized by this processor, or an emptyset if none |
init | public synchronized void init(ProcessingEnvironment processingEnv)(Code) | | Initializes the processor with the processing environment by
setting the
processingEnv field to the value of the
processingEnv argument. An
IllegalStateException will be thrown if this method is called
more than once on the same object.
Parameters: processingEnv - environment to access facilities the tool frameworkprovides to the processor throws: IllegalStateException - if this method is called more than once. |
isInitialized | protected synchronized boolean isInitialized()(Code) | | Returns
true if this object has been
,
false otherwise.
true if this object has been initialized, false otherwise. |
|
|