Class MethodArgument
java.lang.Object
org.apache.commons.digester3.annotations.reflect.MethodArgument
- All Implemented Interfaces:
AnnotatedElement
Class to supply the missing Java
AnnotatedElement for method arguments.- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionMethodArgument(int index, Class<?> parameterType, Annotation[] annotations) Creates a new method argument asAnnotatedElement. -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class<T> annotationType) intgetIndex()Returns the method argument index.Class<?> Returns the method argument type.booleanisAnnotationPresent(Class<? extends Annotation> annotationType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Constructor Details
-
MethodArgument
Creates a new method argument asAnnotatedElement.- Parameters:
index- the method argument index.parameterType- the method argument type.annotations- the method argument annotations.
-
-
Method Details
-
getIndex
-
getParameterType
Returns the method argument type.- Returns:
- the method argument type.
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-