|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Annotated
Represents a Java program element that can be annotated.
AnnotatedElement
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<T> 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. |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determine if the program element has an annotation of a certain annotation type. |
Method Detail |
---|
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.
<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
Get program element annotation of a certain annotation type.
T
- the type of the annotationannotationType
- the class of the 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.
annotationType
- the annotation type to check for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41