|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.AnnotatedMethod
public final class AnnotatedMethod
Annotated method representation.
| Constructor Summary | |
|---|---|
AnnotatedMethod(Method method)
Create annotated method instance from the Java method. |
|
| Method Summary | ||
|---|---|---|
|
getAnnotation(Class<T> annotationType)
|
|
Annotation[] |
getAnnotations()
|
|
Annotation[] |
getDeclaredAnnotations()
|
|
Type[] |
getGenericParameterTypes()
Get generic method parameter types. |
|
|
getMetaMethodAnnotations(Class<T> annotation)
Get all instances of the specified meta-annotation type found on the method annotations. |
|
Method |
getMethod()
Get the underlying Java method. |
|
Annotation[][] |
getParameterAnnotations()
Get method parameter annotations. |
|
Class<?>[] |
getParameterTypes()
Get method parameter types. |
|
TypeVariable<Method>[] |
getTypeParameters()
Get method type parameters. |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedMethod(Method method)
Java method.
method - Java method.| Method Detail |
|---|
public Method getMethod()
public Annotation[][] getParameterAnnotations()
public Class<?>[] getParameterTypes()
Method.getParameterTypes().
public TypeVariable<Method>[] getTypeParameters()
Method.getTypeParameters().
public Type[] getGenericParameterTypes()
Method.getGenericParameterTypes().
public <T extends Annotation> List<T> getMetaMethodAnnotations(Class<T> annotation)
T - meta-annotation type.annotation - meta-annotation class to be searched for.
public String toString()
toString in class Objectpublic 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 AnnotatedElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||