org.jvnet.annox.model
Class XAnnotatedElement<T extends AnnotatedElement>
java.lang.Object
org.jvnet.annox.model.XAnnotated
org.jvnet.annox.model.XAnnotatedElement<T>
- Type Parameters:
T
- type of the annotated element.
- All Implemented Interfaces:
- AnnotatedElement
- Direct Known Subclasses:
- XClass, XMember, XPackage
public class XAnnotatedElement<T extends AnnotatedElement>
- extends XAnnotated
- implements AnnotatedElement
Defines an annotated element.
- Author:
- Aleksei Valikov
XAnnotatedElement
public XAnnotatedElement(T annotatedElement,
XAnnotation[] xannotations)
- Constructs an annotated element.
- Parameters:
annotatedElement
- target annotated element.xannotations
- element annotations.
getAnnotatedElement
public T getAnnotatedElement()
- Returns the target annotated element.
- Returns:
- Target annotated element.
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interface AnnotatedElement
getAnnotation
public <X extends Annotation> X getAnnotation(Class<X> annotationClass)
- Specified by:
getAnnotation
in interface AnnotatedElement
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2006-2011 Highsource. All Rights Reserved.