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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractAnnotationVisitor
(Class<? extends Annotation> ann) protected
AbstractAnnotationVisitor
(List<Class<? extends Annotation>> ann) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addTargetAnnotation
(Class<? extends Annotation> ann) List<Class<? extends Annotation>>
return the list of annotations this visitor wants to be informed about.Class<?>
void
set the target object being visited.void
void
visitClass
(Class<?> clz, Annotation annotation) visit an annotated class.void
visitField
(Field field, Annotation annotation) visit an annotated field.void
visitMethod
(Method method, Annotation annotation) visit an annotated method.
-
Field Details
-
target
-
targetClass
-
-
Constructor Details
-
AbstractAnnotationVisitor
-
AbstractAnnotationVisitor
-
-
Method Details
-
addTargetAnnotation
-
visitClass
Description copied from interface:AnnotationVisitor
visit an annotated class. Invoked when the class of an object is annotated by one of the specified annotations.visitClass
is called for each of the annotations that matches and for each class.- Specified by:
visitClass
in interfaceAnnotationVisitor
- Parameters:
clz
- the class with the annotationannotation
- the annotation
-
getTargetAnnotations
Description copied from interface:AnnotationVisitor
return the list of annotations this visitor wants to be informed about.- Specified by:
getTargetAnnotations
in interfaceAnnotationVisitor
- Returns:
- list of annotation types to be informed about
-
visitField
Description copied from interface:AnnotationVisitor
visit an annotated field. Invoked when the field of an object is annotated by one of the specified annotations.visitField
is called for each of the annotations that matches and for each field.- Specified by:
visitField
in interfaceAnnotationVisitor
- Parameters:
field
- the annotated fieldannotation
- the annotation
-
visitMethod
Description copied from interface:AnnotationVisitor
visit an annotated method. Invoked when the method of an object is annotated by one of the specified annotations.visitMethod
is called for each of the annotations that matches and for each method.- Specified by:
visitMethod
in interfaceAnnotationVisitor
- Parameters:
method
- the annotated fieldxannotation
- the annotation
-
setTarget
Description copied from interface:AnnotationVisitor
set the target object being visited. Invoked before any of the visit methods.- Specified by:
setTarget
in interfaceAnnotationVisitor
- Parameters:
object
- the target object- See Also:
-
setTarget
-
getTarget
-
getTargetClass
-