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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public 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 AnnotatedElement
public <X extends Annotation> X getAnnotation(Class<X> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2006–2016. All rights reserved.