public class MetaAnnotatedElement<T extends java.lang.reflect.AnnotatedElement> extends java.lang.Object implements java.lang.reflect.AnnotatedElement, MetaAnnotated<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> |
annotations |
protected T |
target |
| Constructor and Description |
|---|
MetaAnnotatedElement(T element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
get() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
java.util.Collection<MetaAnnotation<?>> |
getMetaAnnotations() |
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
java.lang.String |
toString() |
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> |
unroll(java.lang.reflect.AnnotatedElement element) |
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> |
unroll(java.lang.annotation.Annotation[] annotations) |
protected java.lang.annotation.Annotation[][] |
unrollParameters(java.lang.annotation.Annotation[][] parameterAnnotations) |
protected final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> annotations
protected final T extends java.lang.reflect.AnnotatedElement target
public MetaAnnotatedElement(T element)
public T get()
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElementpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.util.Collection<MetaAnnotation<?>> getMetaAnnotations()
getMetaAnnotations in interface MetaAnnotated<T extends java.lang.reflect.AnnotatedElement>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> unroll(java.lang.reflect.AnnotatedElement element)
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> unroll(java.lang.annotation.Annotation[] annotations)
protected java.lang.annotation.Annotation[][] unrollParameters(java.lang.annotation.Annotation[][] parameterAnnotations)