public abstract class Parameter<E extends Member> extends Object implements AnnotatedElement
Modifier and Type | Method and Description |
---|---|
static <T> Parameter<Constructor<T>> |
declaredBy(Constructor<T> ctor,
int index) |
static Parameter<Method> |
declaredBy(Method method,
int index) |
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
E |
getDeclaringExecutable() |
int |
getIndex() |
protected abstract Annotation[][] |
getParameterAnnotations() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
String |
toString() |
public E getDeclaringExecutable()
public int getIndex()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
protected abstract Annotation[][] getParameterAnnotations()
public static <T> Parameter<Constructor<T>> declaredBy(Constructor<T> ctor, int index)
public static Parameter<Method> declaredBy(Method method, int index)
Copyright © 2005–2014. All rights reserved.