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, isAnnotationPresent
getAnnotations, getXAnnotations, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
public 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()
ParameterizedAnnotatedElement
getParameterAnnotations
in interface ParameterizedAnnotatedElement
Copyright © 2006–2017 Highsource. All rights reserved.