public abstract class Parameter<E extends java.lang.reflect.Member>
extends java.lang.Object
implements java.lang.reflect.AnnotatedElement
| Modifier and Type | Field and Description |
|---|---|
private E |
declaringExecutable |
private int |
index |
| Modifier | Constructor and Description |
|---|---|
private |
Parameter(E declaringExecutable,
int index) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Parameter<java.lang.reflect.Constructor<T>> |
declaredBy(java.lang.reflect.Constructor<T> ctor,
int index) |
static Parameter<java.lang.reflect.Method> |
declaredBy(java.lang.reflect.Method method,
int index) |
boolean |
equals(java.lang.Object o) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
E |
getDeclaringExecutable() |
int |
getIndex() |
protected abstract java.lang.annotation.Annotation[][] |
getParameterAnnotations() |
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
java.lang.String |
toString() |
private final E extends java.lang.reflect.Member declaringExecutable
private final int index
private Parameter(E declaringExecutable, int index)
public E getDeclaringExecutable()
public int getIndex()
public <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.AnnotatedElementpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected abstract java.lang.annotation.Annotation[][] getParameterAnnotations()
public static <T> Parameter<java.lang.reflect.Constructor<T>> declaredBy(java.lang.reflect.Constructor<T> ctor, int index)
public static Parameter<java.lang.reflect.Method> declaredBy(java.lang.reflect.Method method, int index)