Package org.jvnet.jaxb.annox.reflect
Class MethodAnnotatedElement
- java.lang.Object
-
- org.jvnet.jaxb.annox.reflect.MethodAnnotatedElement
-
- All Implemented Interfaces:
AnnotatedElement,ParameterizedAnnotatedElement
public final class MethodAnnotatedElement extends Object implements ParameterizedAnnotatedElement
-
-
Constructor Summary
Constructors Constructor Description MethodAnnotatedElement(Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Annotation[]getDeclaredAnnotations()Annotation[][]getParameterAnnotations()Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this parameterized annotated element.booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Constructor Detail
-
MethodAnnotatedElement
public MethodAnnotatedElement(Method method)
-
-
Method Detail
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
getParameterAnnotations
public Annotation[][] getParameterAnnotations()
Description copied from interface:ParameterizedAnnotatedElementReturns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this parameterized annotated element. (Returns an array of length zero if the underlying element is parameterless. If the method has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.- Specified by:
getParameterAnnotationsin interfaceParameterizedAnnotatedElement- Returns:
- an array of arrays that represent the annotations on the formal parameters, in declaration order.
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
-