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 AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent
in interface AnnotatedElement
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.