public class XMethod extends XMember<Method> implements ParameterizedAnnotatedElement
| Modifier and Type | Field and Description |
|---|---|
static XMethod[] |
EMPTY_ARRAY
Empty array of methods.
|
| Constructor and Description |
|---|
XMethod(Method method,
XAnnotation[] xannotations,
XParameter[] parameters)
Constructs an annotated method.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
getMethod()
Returns the target methid.
|
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, isAnnotationPresentgetAnnotations, getXAnnotations, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresentpublic static final XMethod[] EMPTY_ARRAY
public XMethod(Method method, XAnnotation[] xannotations, XParameter[] parameters)
method - target method.xannotations - annotations of the target method.parameters - annotated method parameters.public XParameter[] getParameters()
public Method getMethod()
public Annotation[][] getParameterAnnotations()
ParameterizedAnnotatedElementgetParameterAnnotations in interface ParameterizedAnnotatedElementCopyright © 2006-2013 Highsource. All Rights Reserved.