com.sun.jersey.core.reflection
Class AnnotatedMethod

java.lang.Object
  extended by com.sun.jersey.core.reflection.AnnotatedMethod
All Implemented Interfaces:
AnnotatedElement

public final class AnnotatedMethod
extends Object
implements AnnotatedElement

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
AnnotatedMethod(Method m)
           
 
Method Summary
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
           
 Annotation[] getAnnotations()
           
 Annotation[] getDeclaredAnnotations()
           
 Type[] getGenericParameterTypes()
           
<T extends Annotation>
List<T>
getMetaMethodAnnotations(Class<T> annotation)
           
 Method getMethod()
           
 Annotation[][] getParameterAnnotations()
           
 Class<?>[] getParameterTypes()
           
 TypeVariable<Method>[] getTypeParameters()
           
 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

AnnotatedMethod

public AnnotatedMethod(Method m)
Method Detail

getMethod

public Method getMethod()

getParameterAnnotations

public Annotation[][] getParameterAnnotations()

getParameterTypes

public Class<?>[] getParameterTypes()

getTypeParameters

public TypeVariable<Method>[] getTypeParameters()

getGenericParameterTypes

public Type[] getGenericParameterTypes()

getMetaMethodAnnotations

public <T extends Annotation> List<T> getMetaMethodAnnotations(Class<T> annotation)

toString

public String toString()
Overrides:
toString in class Object

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Specified by:
isAnnotationPresent in interface AnnotatedElement

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Specified by:
getAnnotation in interface AnnotatedElement

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface AnnotatedElement

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface AnnotatedElement


Copyright © 2011 Oracle Corporation. All Rights Reserved.