public class AnnotatedTypeWrapper<T> extends ForwardingAnnotatedType<T>
Constructor and Description |
---|
AnnotatedTypeWrapper(AnnotatedType<T> delegate,
Annotation... additionalAnnotations) |
Modifier and Type | Method and Description |
---|---|
AnnotatedType<T> |
delegate() |
<A extends Annotation> |
getAnnotation(Class<A> annotationType)
Get program element annotation of a certain annotation type.
|
Set<Annotation> |
getAnnotations()
Get all annotations of the program element.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
getConstructors, getFields, getJavaClass, getMethods
equals, getBaseType, getTypeClosure, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBaseType, getTypeClosure
public AnnotatedTypeWrapper(AnnotatedType<T> delegate, Annotation... additionalAnnotations)
public AnnotatedType<T> delegate()
delegate
in class ForwardingAnnotatedType<T>
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
Annotated
Get program element annotation of a certain annotation type.
getAnnotation
in interface Annotated
getAnnotation
in class ForwardingAnnotated
A
- the type of the annotationannotationType
- the class of the annotation typepublic Set<Annotation> getAnnotations()
Annotated
Get all annotations of the program element.
getAnnotations
in interface Annotated
getAnnotations
in class ForwardingAnnotated
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Annotated
Determine if the program element has an annotation of a certain annotation type.
isAnnotationPresent
in interface Annotated
isAnnotationPresent
in class ForwardingAnnotated
annotationType
- the annotation type to check forCopyright © 2013 Seam Framework. All Rights Reserved.