org.objectweb.fractal.fraclet.annotation.processor
Class AttributeProcessor
java.lang.Object
spoon.processing.AbstractProcessor<E>
spoon.processing.AbstractAnnotationProcessor<Attribute,spoon.reflect.declaration.CtField<?>>
org.objectweb.fractal.fraclet.annotation.processor.AttributeProcessor
- All Implemented Interfaces:
- spoon.processing.AnnotationProcessor<Attribute,spoon.reflect.declaration.CtField<?>>, spoon.processing.FactoryAccessor, spoon.processing.Processor<spoon.reflect.declaration.CtField<?>>
public class AttributeProcessor
- extends spoon.processing.AbstractAnnotationProcessor<Attribute,spoon.reflect.declaration.CtField<?>>
An annotation processor to manage the Attribute annotation
- Author:
- Nicolas Pessemier
Methods inherited from class spoon.processing.AbstractAnnotationProcessor |
addConsumedAnnotationType, addProcessedAnnotationType, clearConsumedAnnotationTypes, clearProcessedAnnotationTypes, getConsumedAnnotationTypes, getProcessedAnnotationTypes, isToBeProcessed, process, removeConsumedAnnotationType, removeProcessedAnnotationType |
Methods inherited from class spoon.processing.AbstractProcessor |
addProcessedElementType, clearProcessedElementType, getEnvironment, getFactory, getProcessedElementTypes, getTraversalStrategy, process, processingDone, removeProcessedElementType, setFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface spoon.processing.Processor |
getEnvironment, getProcessedElementTypes, getTraversalStrategy, process, processingDone |
Methods inherited from interface spoon.processing.FactoryAccessor |
getFactory, setFactory |
AttributeProcessor
public AttributeProcessor()
init
public void init()
- Specified by:
init
in interface spoon.processing.Processor<spoon.reflect.declaration.CtField<?>>
- Overrides:
init
in class spoon.processing.AbstractProcessor<spoon.reflect.declaration.CtField<?>>
inferConsumedAnnotationType
public boolean inferConsumedAnnotationType()
- Specified by:
inferConsumedAnnotationType
in interface spoon.processing.AnnotationProcessor<Attribute,spoon.reflect.declaration.CtField<?>>
- Overrides:
inferConsumedAnnotationType
in class spoon.processing.AbstractAnnotationProcessor<Attribute,spoon.reflect.declaration.CtField<?>>
process
public void process(Attribute acAnnotation,
spoon.reflect.declaration.CtField<?> processedField)
- A constructor for the AttributeProcessor
- Parameters:
acAnnotation
- the Attribute annotationprocessedField
- the CtField processed