|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Annotated
The metadata for an annotated element which can be parsed by the
BeanManager
.
The semantics are similar to AnnotatedElement
.
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<T> annotationType)
Get the annotation instance on the annoated element for a given annotation type. |
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Get all the annotation instances on the annotated element |
|
java.lang.reflect.Type |
getBaseType()
Get the type of the annotated element |
|
java.util.Set<java.lang.reflect.Type> |
getTypeClosure()
Get all types the base type should be considered assignable to |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if an annotation is present on the annotated element |
Method Detail |
---|
java.lang.reflect.Type getBaseType()
java.util.Set<java.lang.reflect.Type> getTypeClosure()
<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
T
- the type of the annotationannotationType
- the class object of the annotation type
java.util.Set<java.lang.annotation.Annotation> getAnnotations()
boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType
- the annotation type to check for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |