Package hudson.util
Class ReflectionUtils.Parameter
java.lang.Object
hudson.util.ReflectionUtils.Parameter
- All Implemented Interfaces:
AnnotatedElement
- Enclosing class:
- ReflectionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
Aannotation
(Class<A> type) Gets the specified annotation on this parameter or null.Gets all the annotations on this parameter.Gets the unerased generic type of this parameter.<T extends Annotation>
TgetAnnotation
(Class<T> type) int
index()
0-origin index of this parameter.boolean
isAnnotationPresent
(Class<? extends Annotation> type) name()
Name of this parameter.Class<?>
type()
Gets the type of this parameter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Constructor Details
-
Parameter
-
-
Method Details
-
index
public int index()0-origin index of this parameter. -
type
Gets the type of this parameter. -
genericType
Gets the unerased generic type of this parameter. -
annotations
Gets all the annotations on this parameter. -
annotation
Gets the specified annotation on this parameter or null. -
name
Name of this parameter. If unknown, this method returns null. -
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-