public interface AnnotationVisitor
Modifier and Type | Method and Description |
---|---|
List<Class<? extends Annotation>> |
getTargetAnnotations()
return the list of annotations this visitor wants to be
informed about.
|
void |
setTarget(Object target)
set the target object being visited.
|
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.
|
void setTarget(Object target)
target
- the target objectAnnotationProcessor
List<Class<? extends Annotation>> getTargetAnnotations()
void visitClass(Class<?> clz, Annotation annotation)
visitClass
is called for each of the annotations
that matches and for each class.clz
- the class with the annotationannotation
- the annotationvoid visitField(Field field, Annotation annotation)
visitField
is called for each of the annotations
that matches and for each field.field
- the annotated fieldannotation
- the annotationvoid visitMethod(Method method, Annotation annotation)
visitMethod
is called for each of the annotations
that matches and for each method.method
- the annotated fieldxannotation
- the annotationApache CXF