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, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public 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 AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> type)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2015. All rights reserved.