| spoon.processing.AnnotationProcessor
AnnotationProcessor | public interface AnnotationProcessor extends Processor<E>(Code) | | This interface defines an annotation processor. An annotation processor is
triggered by Spoon when a visited element is annotated with one of the
processed or consumed annotations. To define a new annotation processor, the
user should subclass
spoon.processing.AbstractAnnotationProcessor ,
the abstract default implementation of this interface.
|
getConsumedAnnotationTypes | Set<Class<? extends A>> getConsumedAnnotationTypes()(Code) | | Gets the annotations types consumed by this processor. A consumed
annotation is a special kind of processed annotation (see
AnnotationProcessor.getProcessedAnnotationTypes() that is automatically removed from
the program once the associated processor has finished its job.
the annotation classes |
getProcessedAnnotationTypes | Set<Class<? extends A>> getProcessedAnnotationTypes()(Code) | | Gets the annotations processed by this annotation processor, that is to
say the annotation types that trigger the
AnnotationProcessor.process(Annotation,CtElement) method when visiting a program
element. The processed annotation types includes all the consumed
annotation types.
the annotation classes |
inferConsumedAnnotationType | boolean inferConsumedAnnotationType()(Code) | | Returns true (default) if the processor automatically infers the consumed
annotation type to the A actual type.
|
process | void process(A annotation, E element)(Code) | | Do the annotation processing job for a given annotation.
Parameters: annotation - the annotation to process Parameters: element - the element that holds the processed annotations |
|
|