net.vidageek.mirror.reflect
Class DefaultMethodAnnotationHandler<T extends Annotation>
java.lang.Object
net.vidageek.mirror.reflect.DefaultMethodAnnotationHandler<T>
- All Implemented Interfaces:
- MethodAnnotationHandler<T>
public final class DefaultMethodAnnotationHandler<T extends Annotation>
- extends Object
- implements MethodAnnotationHandler<T>
This class is responsible for reflecting annotations on a method.
- Author:
- dnfeitosa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMethodAnnotationHandler
public DefaultMethodAnnotationHandler(ReflectionProvider provider,
Class<?> clazz,
String methodName,
Class<T> annotation)
withArgs
public T withArgs(Class<?>... classes)
- Description copied from interface:
MethodAnnotationHandler
- Use this method to reflect a single annotation at the method that matches
classes as its arguments.
- Specified by:
withArgs in interface MethodAnnotationHandler<T extends Annotation>
- Parameters:
classes - arguments of the method from where to search for annotations.
- Returns:
- The annotation or null if it was not found.
- See Also:
AnnotatedElementReflectionProvider.getAnnotation(Class)
withoutArgs
public T withoutArgs()
- Description copied from interface:
MethodAnnotationHandler
- This is a convenience method for
MethodAnnotationHandler.withArgs(Class...)
- Specified by:
withoutArgs in interface MethodAnnotationHandler<T extends Annotation>
- See Also:
MethodAnnotationHandler.withArgs(Class...)
Copyright © 2011 VidaGeek.net. All Rights Reserved.