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.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent
in interface java.lang.reflect.AnnotatedElement
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected 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)