Package org.jvnet.basicjaxb_annox.model
Class XConstructor
java.lang.Object
org.jvnet.basicjaxb_annox.model.XAnnotated
org.jvnet.basicjaxb_annox.model.XAnnotatedElement<T>
org.jvnet.basicjaxb_annox.model.XMember<Constructor<?>>
org.jvnet.basicjaxb_annox.model.XConstructor
- All Implemented Interfaces:
AnnotatedElement,ParameterizedAnnotatedElement
Defines an annotated constructor.
- Author:
- Aleksei Valikov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXConstructor(Constructor<?> constructor, XAnnotation<?>[] xannotations, XParameter[] parameters) Constructs an annotated constructor. -
Method Summary
Modifier and TypeMethodDescriptionConstructor<?>Returns the target constructor.Annotation[][]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 annotated parameters of the method.Methods inherited from class org.jvnet.basicjaxb_annox.model.XMember
equals, getMember, getName, hashCodeMethods inherited from class org.jvnet.basicjaxb_annox.model.XAnnotatedElement
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresentMethods inherited from class org.jvnet.basicjaxb_annox.model.XAnnotated
getAnnotations, getXAnnotations, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
-
Field Details
-
EMPTY_ARRAY
Empty array of constructors.
-
-
Constructor Details
-
XConstructor
public XConstructor(Constructor<?> constructor, XAnnotation<?>[] xannotations, XParameter[] parameters) Constructs an annotated constructor.- Parameters:
constructor- target constructor.xannotations- constructor annotations.parameters- annotated constructor parameters.
-
-
Method Details
-
getParameters
Returns annotated parameters of the method.- Returns:
- Annotated parameters of the method.
-
getConstructor
Returns the target constructor.- Returns:
- Target constructor.
-
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.
-