AnnotatedElement
, Annotated<T>
, MetaAnnotated<T>
MetaAnnotatedClass
, MetaAnnotatedConstructor
, MetaAnnotatedField
, MetaAnnotatedMethod
public 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, getDeclaredAnnotationsByType
protected 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 AnnotatedElement
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 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.