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() |
public 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 AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2013 Oracle Corporation. All rights reserved.