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