public class XConstructor extends XMember<Constructor<?>> implements ParameterizedAnnotatedElement
Modifier and Type | Field and Description |
---|---|
static XConstructor[] |
EMPTY_ARRAY
Empty array of constructors.
|
Constructor and Description |
---|
XConstructor(Constructor<?> constructor,
XAnnotation[] xannotations,
XParameter[] parameters)
Constructs an annotated constructor.
|
Modifier and Type | Method and Description |
---|---|
Constructor<?> |
getConstructor()
Returns the target constructor.
|
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.
|
XParameter[] |
getParameters()
Returns annotated parameters of the method.
|
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresent
getAnnotations, getXAnnotations, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
public static final XConstructor[] EMPTY_ARRAY
public XConstructor(Constructor<?> constructor, XAnnotation[] xannotations, XParameter[] parameters)
constructor
- target constructor.xannotations
- constructor annotations.parameters
- annotated constructor parameters.public XParameter[] getParameters()
public Constructor<?> getConstructor()
public Annotation[][] getParameterAnnotations()
ParameterizedAnnotatedElement
getParameterAnnotations
in interface ParameterizedAnnotatedElement
Copyright © 2006–2017 Highsource. All rights reserved.