|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.vidageek.mirror.reflect.DefaultAnnotationHandler<T>
public final class DefaultAnnotationHandler<T extends Annotation>
This class is responsible for choosing where to reflect a single annotation.
| Constructor Summary | |
|---|---|
DefaultAnnotationHandler(ReflectionProvider provider,
Class<?> clazz,
Class<T> annotation)
|
|
| Method Summary | |
|---|---|
T |
atClass()
Use this method to reflect a single annotation at class |
T |
atField(String fieldName)
Use this method to reflect a single annotation at field named fieldName |
MethodAnnotationHandler<T> |
atMethod(String methodName)
Use this method to reflect a single annotation at method named methodName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAnnotationHandler(ReflectionProvider provider,
Class<?> clazz,
Class<T> annotation)
| Method Detail |
|---|
public T atField(String fieldName)
AnnotationHandler
atField in interface AnnotationHandler<T extends Annotation>fieldName - name of the field from where to search for annotations.
AnnotatedElementReflectionProvider.getAnnotation(Class)public MethodAnnotationHandler<T> atMethod(String methodName)
AnnotationHandler
atMethod in interface AnnotationHandler<T extends Annotation>methodName - name of the method from where to search for annotations.
AnnotatedElementReflectionProvider.getAnnotation(Class)public T atClass()
AnnotationHandler
atClass in interface AnnotationHandler<T extends Annotation>AnnotatedElementReflectionProvider.getAnnotation(Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||