public interface JavaHasAnnotations extends JavaElement
Note: @Retention values for annotations on local variables that are not formal parameters are implicitly SOURCE.
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
JavaAnnotation |
getAnnotation(JavaType annotationType)
Retrieves the annotation declared on this element that matches the input annotation type.
|
java.util.Collection<JavaAnnotation> |
getAnnotations()
Retrieves all the annotations declared on this element.
|
JavaAnnotation |
getDeclaredAnnotation(JavaType annotationType) |
java.util.Collection<JavaAnnotation> |
getDeclaredAnnotations()
Retrieves all the annotations declared on this element.
|
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo
java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
java.util.Collection<JavaAnnotation> getAnnotations()
JavaAnnotation getDeclaredAnnotation(JavaType annotationType)
JavaAnnotation getAnnotation(JavaType annotationType)