public class Parameter
extends java.lang.Object
implements java.lang.reflect.AnnotatedElement
| Modifier and Type | Field and Description |
|---|---|
private java.lang.annotation.Annotation[] |
declaredAnnotations
preserving the order of annotations.
|
private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
declaredAnnotationsMap
For efficient back to back searches.
|
private int |
index |
private java.lang.Class<?> |
type |
| Constructor and Description |
|---|
Parameter(int index,
java.lang.Class<?> type,
java.lang.annotation.Annotation[] declaredAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
declaredAnnotations(java.lang.annotation.Annotation[] ann) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
java.lang.Class<?> |
getType()
Returns a
Class object that identifies the
declared type for the parameter represented by this
Parameter object. |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
java.lang.String |
toString() |
private final int index
private final java.lang.Class<?> type
private final java.lang.annotation.Annotation[] declaredAnnotations
private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationsMap
public Parameter(int index,
java.lang.Class<?> type,
java.lang.annotation.Annotation[] declaredAnnotations)
private static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotations(java.lang.annotation.Annotation[] ann)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class<?> getType()
Class object that identifies the
declared type for the parameter represented by this
Parameter object.Class object identifying the declared
type of the parameter represented by this objectpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement