AnnotatedElement, Annotated<T>, MetaAnnotated<T>MetaAnnotatedClass, MetaAnnotatedConstructor, MetaAnnotatedField, MetaAnnotatedMethodpublic class MetaAnnotatedElement<T extends AnnotatedElement> extends Object implements AnnotatedElement, MetaAnnotated<T>
| Modifier and Type | Field | Description |
|---|---|---|
protected Map<Class<? extends Annotation>,MetaAnnotation<?>> |
annotations |
|
protected T |
target |
| Constructor | Description |
|---|---|
MetaAnnotatedElement(T element) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
T |
get() |
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
|
Annotation[] |
getAnnotations() |
|
Annotation[] |
getDeclaredAnnotations() |
|
Collection<MetaAnnotation<?>> |
getMetaAnnotations() |
|
int |
hashCode() |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
|
String |
toString() |
|
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> |
unroll(Annotation[] annotations) |
|
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> |
unroll(AnnotatedElement element) |
|
protected Annotation[][] |
unrollParameters(Annotation[][] parameterAnnotations) |
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypeprotected final Map<Class<? extends Annotation>,MetaAnnotation<?>> annotations
protected final T extends AnnotatedElement target
public MetaAnnotatedElement(T element)
public T get()
get in interface Annotated<T extends AnnotatedElement>public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Collection<MetaAnnotation<?>> getMetaAnnotations()
getMetaAnnotations in interface MetaAnnotated<T extends AnnotatedElement>protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(AnnotatedElement element)
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(Annotation[] annotations)
protected Annotation[][] unrollParameters(Annotation[][] parameterAnnotations)
Copyright © 2005–2018. All rights reserved.