java.lang.reflect.AnnotatedElement
, Annotated<T>
, MetaAnnotated<T>
MetaAnnotatedClass
, MetaAnnotatedConstructor
, MetaAnnotatedField
, MetaAnnotatedMethod
public class MetaAnnotatedElement<T extends java.lang.reflect.AnnotatedElement> extends java.lang.Object implements java.lang.reflect.AnnotatedElement, MetaAnnotated<T>
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> |
annotations |
|
protected T |
target |
Constructor | Description |
---|---|
MetaAnnotatedElement(T element) |
Modifier and Type | Method | 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.annotation.Annotation[] annotations) |
|
protected static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MetaAnnotation<?>> |
unroll(java.lang.reflect.AnnotatedElement element) |
|
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.AnnotatedElement
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent
in interface java.lang.reflect.AnnotatedElement
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
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)
Copyright © 2005–2018. All rights reserved.