|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.annotations.reflect.MethodArgument
public final class MethodArgument
Class to supply the missing Java AnnotatedElement
for method arguments.
Constructor Summary | |
---|---|
MethodArgument(int index,
Class<?> parameterType,
Annotation[] annotations)
Creates a new method argument as AnnotatedElement . |
Method Summary | ||
---|---|---|
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodArgument(int index, Class<?> parameterType, Annotation[] annotations)
AnnotatedElement
.
index
- the method argument index.parameterType
- the method argument type.annotations
- the method argument annotations.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |