AnnotatedElementpublic abstract class Parameter<E extends Member> extends Object implements AnnotatedElement
| Modifier and Type | Method | 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() |
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic E getDeclaringExecutable()
public int getIndex()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementprotected abstract Annotation[][] getParameterAnnotations()
public static <T> Parameter<Constructor<T>> declaredBy(Constructor<T> ctor, int index)
Copyright © 2005–2018. All rights reserved.