|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationVisitor
Visits the annotated elements of an object
Method Summary | |
---|---|
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. |
Method Detail |
---|
void setTarget(java.lang.Object target)
target
- the target objectAnnotationProcessor
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |