|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.common.annotation.AbstractAnnotationVisitor
public abstract class AbstractAnnotationVisitor
| Field Summary | |
|---|---|
protected Object |
target
|
protected Class<?> |
targetClass
|
| Constructor Summary | |
|---|---|
protected |
AbstractAnnotationVisitor(Class<? extends Annotation> ann)
|
protected |
AbstractAnnotationVisitor(List<Class<? extends Annotation>> ann)
|
| Method Summary | |
|---|---|
protected void |
addTargetAnnotation(Class<? extends Annotation> ann)
|
Object |
getTarget()
|
List<Class<? extends Annotation>> |
getTargetAnnotations()
return the list of annotations this visitor wants to be informed about. |
Class<?> |
getTargetClass()
|
void |
setTarget(Object object)
set the target object being visited. |
void |
setTarget(Object object,
Class<?> cls)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object target
protected Class<?> targetClass
| Constructor Detail |
|---|
protected AbstractAnnotationVisitor(Class<? extends Annotation> ann)
protected AbstractAnnotationVisitor(List<Class<? extends Annotation>> ann)
| Method Detail |
|---|
protected final void addTargetAnnotation(Class<? extends Annotation> ann)
public void visitClass(Class<?> clz,
Annotation annotation)
AnnotationVisitorvisitClass is called for each of the annotations
that matches and for each class.
visitClass in interface AnnotationVisitorclz - the class with the annotationannotation - the annotationpublic List<Class<? extends Annotation>> getTargetAnnotations()
AnnotationVisitor
getTargetAnnotations in interface AnnotationVisitor
public void visitField(Field field,
Annotation annotation)
AnnotationVisitorvisitField is called for each of the annotations
that matches and for each field.
visitField in interface AnnotationVisitorfield - the annotated fieldannotation - the annotation
public void visitMethod(Method method,
Annotation annotation)
AnnotationVisitorvisitMethod is called for each of the annotations
that matches and for each method.
visitMethod in interface AnnotationVisitormethod - the annotated fieldxannotation - the annotationpublic void setTarget(Object object)
AnnotationVisitor
setTarget in interface AnnotationVisitorobject - the target objectAnnotationProcessor
public void setTarget(Object object,
Class<?> cls)
public Object getTarget()
public Class<?> getTargetClass()
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||