org.jvnet.annox.model
Class XConstructor
java.lang.Object
org.jvnet.annox.model.XAnnotated
org.jvnet.annox.model.XAnnotatedElement<T>
org.jvnet.annox.model.XMember<Constructor<?>>
org.jvnet.annox.model.XConstructor
- All Implemented Interfaces:
- AnnotatedElement, ParameterizedAnnotatedElement
public class XConstructor
- extends XMember<Constructor<?>>
- implements ParameterizedAnnotatedElement
Defines an annotated constructor.
- Author:
- Aleksei Valikov
EMPTY_ARRAY
public static final XConstructor[] EMPTY_ARRAY
- Empty array of constructors.
XConstructor
public XConstructor(Constructor<?> constructor,
XAnnotation[] xannotations,
XParameter[] parameters)
- Constructs an annotated constructor.
- Parameters:
constructor
- target constructor.xannotations
- constructor annotations.parameters
- annotated constructor parameters.
getParameters
public XParameter[] getParameters()
- Returns annotated parameters of the method.
- Returns:
- Annotated parameters of the method.
getConstructor
public Constructor<?> getConstructor()
- Returns the target constructor.
- Returns:
- Target constructor.
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.
Copyright © 2006-2012 Highsource. All Rights Reserved.