public class AnnotatedTypeWrapper<T> extends ForwardingAnnotatedType<T>
| Constructor and Description |
|---|
AnnotatedTypeWrapper(AnnotatedType<T> delegate,
java.lang.annotation.Annotation... additionalAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedType<T> |
delegate() |
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationType)
Get program element annotation of a certain annotation type.
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Get all annotations of the program element.
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
getConstructors, getFields, getJavaClass, getMethodsequals, getBaseType, getTypeClosure, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBaseType, getTypeClosurepublic AnnotatedTypeWrapper(AnnotatedType<T> delegate, java.lang.annotation.Annotation... additionalAnnotations)
public AnnotatedType<T> delegate()
delegate in class ForwardingAnnotatedType<T>public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
AnnotatedGet program element annotation of a certain annotation type.
getAnnotation in interface AnnotatedgetAnnotation in class ForwardingAnnotatedA - the type of the annotationannotationType - the class of the annotation typepublic java.util.Set<java.lang.annotation.Annotation> getAnnotations()
AnnotatedGet all annotations of the program element.
getAnnotations in interface AnnotatedgetAnnotations in class ForwardingAnnotatedpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedDetermine if the program element has an annotation of a certain annotation type.
isAnnotationPresent in interface AnnotatedisAnnotationPresent in class ForwardingAnnotatedannotationType - the annotation type to check forCopyright © 2014. All Rights Reserved.