Package org.apache.xbean.finder
Class Parameter<E extends java.lang.reflect.Member>
- java.lang.Object
-
- org.apache.xbean.finder.Parameter<E>
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
public abstract class Parameter<E extends java.lang.reflect.Member> extends java.lang.Object implements java.lang.reflect.AnnotatedElement
-
-
Field Summary
Fields Modifier and Type Field Description private E
declaringExecutable
private int
index
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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>
TgetAnnotation(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()
-
-
-
Field Detail
-
declaringExecutable
private final E extends java.lang.reflect.Member declaringExecutable
-
index
private final int index
-
-
Constructor Detail
-
Parameter
private Parameter(E declaringExecutable, int index)
-
-
Method Detail
-
getDeclaringExecutable
public E getDeclaringExecutable()
-
getIndex
public int getIndex()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotation
in interfacejava.lang.reflect.AnnotatedElement
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfacejava.lang.reflect.AnnotatedElement
-
getDeclaredAnnotations
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfacejava.lang.reflect.AnnotatedElement
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interfacejava.lang.reflect.AnnotatedElement
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParameterAnnotations
protected abstract java.lang.annotation.Annotation[][] getParameterAnnotations()
-
declaredBy
public static <T> Parameter<java.lang.reflect.Constructor<T>> declaredBy(java.lang.reflect.Constructor<T> ctor, int index)
-
declaredBy
public static Parameter<java.lang.reflect.Method> declaredBy(java.lang.reflect.Method method, int index)
-
-