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