|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationProcessorFactory
A factory for creating annotation processors. Each factory is responsible for creating processors for one or more annotation types. The factory is said to support these types.
Each implementation of an AnnotationProcessorFactory must provide a public no-argument constructor to be used by tools to instantiate the factory.
Method Summary | |
---|---|
AnnotationProcessor |
getProcessorFor(Set<AnnotationTypeDeclaration> atds,
AnnotationProcessorEnvironment env)
Returns an annotation processor for a set of annotation types. |
Collection<String> |
supportedAnnotationTypes()
Returns the names of the annotation types supported by this factory. |
Collection<String> |
supportedOptions()
Returns the options recognized by this factory or by any of the processors it may create. |
Method Detail |
---|
Collection<String> supportedOptions()
A tool might use this information to determine if any options provided by a user are unrecognized by any processor, in which case it may wish to report an error.
Collection<String> supportedAnnotationTypes()
AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, AnnotationProcessorEnvironment env)
AnnotationProcessors.NO_OP
.
atds
- type declarations of the annotation types to be processedenv
- environment to use during processing
|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |