public class MetaAnnotatedElement<T extends AnnotatedElement> extends Object implements AnnotatedElement, MetaAnnotated<T>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<? extends Annotation>,MetaAnnotation<?>> |
annotations |
protected T |
target |
| Constructor and Description |
|---|
MetaAnnotatedElement(T element) |
| Modifier and Type | Method and 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(AnnotatedElement element) |
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> |
unroll(Annotation[] annotations) |
protected Annotation[][] |
unrollParameters(Annotation[][] parameterAnnotations) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationsByType, 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–2020 The Apache Software Foundation. All rights reserved.