Modifier and Type | Field and Description |
---|---|
static EmptyAnnotated |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> 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.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type.
|
public static final EmptyAnnotated INSTANCE
public 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
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Annotated
Get program element annotation of a certain annotation type.
getAnnotation
in interface Annotated
T
- 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 forCopyright © 2013 Seam Framework. All Rights Reserved.