org.jvnet.annox.reflect
Class ConstructorAnnotatedElement

java.lang.Object
  extended by org.jvnet.annox.reflect.ConstructorAnnotatedElement
All Implemented Interfaces:
AnnotatedElement, ParameterizedAnnotatedElement

public final class ConstructorAnnotatedElement
extends Object
implements ParameterizedAnnotatedElement


Constructor Summary
ConstructorAnnotatedElement(Constructor<?> constructor)
           
 
Method Summary
<T extends Annotation>
T
getAnnotation(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.
 boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructorAnnotatedElement

public ConstructorAnnotatedElement(Constructor<?> constructor)
Method Detail

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
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

getParameterAnnotations

public Annotation[][] getParameterAnnotations()
Description copied from interface: ParameterizedAnnotatedElement
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. (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:
getParameterAnnotations in interface ParameterizedAnnotatedElement
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:
isAnnotationPresent in interface AnnotatedElement


Copyright © 2006-2012 Highsource. All Rights Reserved.