public abstract class MetaAnnotatedObject<T> extends Object implements MetaAnnotated<T>
Modifier and Type | Field and Description |
---|---|
protected Map<Class<? extends Annotation>,MetaAnnotation<?>> |
annotations |
protected T |
target |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
get() |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Collection<MetaAnnotation<?>> |
getMetaAnnotations() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
String |
toString() |
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> |
unroll(Class<?> declaringClass,
AnnotatedElement element) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaredAnnotations
protected final Map<Class<? extends Annotation>,MetaAnnotation<?>> annotations
protected final T target
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Collection<MetaAnnotation<?>> getMetaAnnotations()
getMetaAnnotations
in interface MetaAnnotated<T>
protected static Map<Class<? extends Annotation>,MetaAnnotation<?>> unroll(Class<?> declaringClass, AnnotatedElement element)
Copyright © 2005-2012. All Rights Reserved.