| com.sun.mirror.declaration.AnnotationMirror
All known Subclasses: org.eclipse.jdt.apt.core.internal.declaration.AnnotationMirrorImpl,
AnnotationMirror | public interface AnnotationMirror (Code) | | Represents an annotation. An annotation associates a value with
each element of an annotation type.
Annotations should not be compared using reference-equality
("=="). There is no guarantee that any particular
annotation will always be represented by the same object.
author: Joseph D. Darcy author: Scott Seligman version: 1.5 04/07/16 since: 1.5 |
getAnnotationType | AnnotationType getAnnotationType()(Code) | | Returns the annotation type of this annotation.
the annotation type of this annotation |
getElementValues | Map<AnnotationTypeElementDeclaration, AnnotationValue> getElementValues()(Code) | | Returns this annotation's elements and their values.
This is returned in the form of a map that associates elements
with their corresponding values.
Only those elements and values explicitly present in the
annotation are included, not those that are implicitly assuming
their default values.
The order of the map matches the order in which the
elements appear in the annotation's source.
this annotation's elements and their values,or an empty map if there are none |
getPosition | SourcePosition getPosition()(Code) | | Returns the source position of the beginning of this annotation.
Returns null if the position is unknown or not applicable.
This source position is intended for use in providing diagnostics,
and indicates only approximately where an annotation begins.
the source position of the beginning of this annotation ornull if the position is unknown or not applicable |
|
|