public final class AnnotatedMethod extends Object implements AnnotatedElement
| Constructor and Description |
|---|
AnnotatedMethod(Method m) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Type[] |
getGenericParameterTypes() |
<T extends Annotation> |
getMetaMethodAnnotations(Class<T> annotation) |
Method |
getMethod() |
Annotation[][] |
getParameterAnnotations() |
Class<?>[] |
getParameterTypes() |
TypeVariable<Method>[] |
getTypeParameters() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic AnnotatedMethod(Method m)
public Method getMethod()
public Annotation[][] getParameterAnnotations()
public Class<?>[] getParameterTypes()
public TypeVariable<Method>[] getTypeParameters()
public Type[] getGenericParameterTypes()
public <T extends Annotation> List<T> getMetaMethodAnnotations(Class<T> annotation)
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementCopyright © 2016 Oracle Corporation. All rights reserved.