public static final class ReflectionUtils.Parameter extends Object implements AnnotatedElement
| Constructor and Description |
|---|
Parameter(hudson.util.ReflectionUtils.MethodInfo parent,
int index) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
annotation(Class<A> type)
Gets the specified annotation on this parameter or null.
|
Annotation[] |
annotations()
Gets all the annotations on this parameter.
|
Type |
genericType()
Gets the unerased generic type of this parameter.
|
<T extends Annotation> |
getAnnotation(Class<T> type) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
int |
index()
0-origin index of this parameter.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> type) |
String |
name()
Name of this parameter.
|
Class<?> |
type()
Gets the type of this parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic Parameter(hudson.util.ReflectionUtils.MethodInfo parent,
int index)
public int index()
public Class<?> type()
public Type genericType()
public Annotation[] annotations()
public <A extends Annotation> A annotation(Class<A> type)
public String name()
public boolean isAnnotationPresent(Class<? extends Annotation> type)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> type)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementCopyright © 2019. All rights reserved.