Package org.apache.cxf.common.annotation
Class AbstractAnnotationVisitor
- java.lang.Object
- 
- org.apache.cxf.common.annotation.AbstractAnnotationVisitor
 
- 
- All Implemented Interfaces:
- AnnotationVisitor
 - Direct Known Subclasses:
- ResourceInjector
 
 public abstract class AbstractAnnotationVisitor extends Object implements AnnotationVisitor 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Objecttargetprotected Class<?>targetClass
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractAnnotationVisitor(Class<? extends Annotation> ann)protectedAbstractAnnotationVisitor(List<Class<? extends Annotation>> ann)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTargetAnnotation(Class<? extends Annotation> ann)ObjectgetTarget()List<Class<? extends Annotation>>getTargetAnnotations()return the list of annotations this visitor wants to be informed about.Class<?>getTargetClass()voidsetTarget(Object object)set the target object being visited.voidsetTarget(Object object, Class<?> cls)voidvisitClass(Class<?> clz, Annotation annotation)visit an annotated class.voidvisitField(Field field, Annotation annotation)visit an annotated field.voidvisitMethod(Method method, Annotation annotation)visit an annotated method.
 
- 
- 
- 
Constructor Detail- 
AbstractAnnotationVisitorprotected AbstractAnnotationVisitor(Class<? extends Annotation> ann) 
 - 
AbstractAnnotationVisitorprotected AbstractAnnotationVisitor(List<Class<? extends Annotation>> ann) 
 
- 
 - 
Method Detail- 
addTargetAnnotationprotected final void addTargetAnnotation(Class<? extends Annotation> ann) 
 - 
visitClasspublic void visitClass(Class<?> clz, Annotation annotation) Description copied from interface:AnnotationVisitorvisit an annotated class. Invoked when the class of an object is annotated by one of the specified annotations.visitClassis called for each of the annotations that matches and for each class.- Specified by:
- visitClassin interface- AnnotationVisitor
- Parameters:
- clz- the class with the annotation
- annotation- the annotation
 
 - 
getTargetAnnotationspublic List<Class<? extends Annotation>> getTargetAnnotations() Description copied from interface:AnnotationVisitorreturn the list of annotations this visitor wants to be informed about.- Specified by:
- getTargetAnnotationsin interface- AnnotationVisitor
- Returns:
- list of annotation types to be informed about
 
 - 
visitFieldpublic void visitField(Field field, Annotation annotation) Description copied from interface:AnnotationVisitorvisit an annotated field. Invoked when the field of an object is annotated by one of the specified annotations.visitFieldis called for each of the annotations that matches and for each field.- Specified by:
- visitFieldin interface- AnnotationVisitor
- Parameters:
- field- the annotated field
- annotation- the annotation
 
 - 
visitMethodpublic void visitMethod(Method method, Annotation annotation) Description copied from interface:AnnotationVisitorvisit an annotated method. Invoked when the method of an object is annotated by one of the specified annotations.visitMethodis called for each of the annotations that matches and for each method.- Specified by:
- visitMethodin interface- AnnotationVisitor
- Parameters:
- method- the annotated fieldx
- annotation- the annotation
 
 - 
setTargetpublic void setTarget(Object object) Description copied from interface:AnnotationVisitorset the target object being visited. Invoked before any of the visit methods.- Specified by:
- setTargetin interface- AnnotationVisitor
- Parameters:
- object- the target object
- See Also:
- AnnotationProcessor
 
 - 
getTargetpublic Object getTarget() 
 - 
getTargetClasspublic Class<?> getTargetClass() 
 
- 
 
-