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
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractAnnotationVisitor(Class<? extends Annotation> ann) protectedAbstractAnnotationVisitor(List<Class<? extends Annotation>> ann) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidaddTargetAnnotation(Class<? extends Annotation> ann) List<Class<? extends Annotation>>return the list of annotations this visitor wants to be informed about.Class<?>voidset the target object being visited.voidvoidvisitClass(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.
- 
Field Details- 
target
- 
targetClass
 
- 
- 
Constructor Details- 
AbstractAnnotationVisitor
- 
AbstractAnnotationVisitor
 
- 
- 
Method Details- 
addTargetAnnotation
- 
visitClassDescription 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
 
- 
getTargetAnnotationsDescription 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
 
- 
visitFieldDescription 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
 
- 
visitMethodDescription 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
 
- 
setTargetDescription 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:
 
- 
setTarget
- 
getTarget
- 
getTargetClass
 
-