T - the base typeS - the annotated element typepublic abstract class ForwardingAnnotated extends java.lang.Object implements Annotated
| Constructor and Description |
|---|
ForwardingAnnotated() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Annotated |
delegate() |
boolean |
equals(java.lang.Object obj) |
<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.
|
java.lang.reflect.Type |
getBaseType()
Get the type of the annotated program element.
|
java.util.Set<java.lang.reflect.Type> |
getTypeClosure()
Get all types to which the base type should be considered assignable.
|
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
java.lang.String |
toString() |
protected abstract Annotated delegate()
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 AnnotatedA - 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 Annotatedpublic 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 AnnotatedannotationType - the annotation type to check forpublic java.lang.reflect.Type getBaseType()
AnnotatedGet the type of the annotated program element.
getBaseType in interface Annotatedpublic java.util.Set<java.lang.reflect.Type> getTypeClosure()
AnnotatedGet all types to which the base type should be considered assignable.
getTypeClosure in interface Annotatedpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.