T - type of the annotated element.public class XAnnotatedElement<T extends AnnotatedElement> extends XAnnotated implements AnnotatedElement
| Constructor and Description |
|---|
XAnnotatedElement(T annotatedElement,
XAnnotation<?>[] xannotations)
Constructs an annotated element.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getAnnotatedElement()
Returns the target annotated element.
|
<X extends Annotation> |
getAnnotation(Class<X> annotationClass) |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
equals, getAnnotations, getXAnnotations, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic XAnnotatedElement(T annotatedElement, XAnnotation<?>[] xannotations)
annotatedElement - target annotated element.xannotations - element annotations.public T getAnnotatedElement()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementpublic <X extends Annotation> X getAnnotation(Class<X> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementCopyright © 2006–2016. All rights reserved.