public final class MethodArgument extends Object implements AnnotatedElement
AnnotatedElement for method arguments.| Constructor and Description |
|---|
MethodArgument(int index,
Class<?> parameterType,
Annotation[] annotations)
Creates a new method argument as
AnnotatedElement. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
int |
getIndex()
Returns the method argument index.
|
Class<?> |
getParameterType()
Returns the method argument type.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
public MethodArgument(int index, Class<?> parameterType, Annotation[] annotations)
AnnotatedElement.index - the method argument index.parameterType - the method argument type.annotations - the method argument annotations.public int getIndex()
public Class<?> getParameterType()
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface AnnotatedElementCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.