Package com.sun.mirror.declaration
Interface AnnotationValue
-
public interface AnnotationValueRepresents a value of an annotation type element.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourcePositiongetPosition()Returns the source position of the beginning of this annotation value.ObjectgetValue()Returns the value.StringtoString()Returns a string representation of this value.
-
-
-
Method Detail
-
getValue
Object getValue()
Returns the value. The result has one of the following types:- a wrapper class (such as
Integer) for a primitive type -
String -
TypeMirror -
EnumConstantDeclaration -
AnnotationMirror -
Collection<AnnotationValue>(representing the elements, in order, if the value is an array)
- Returns:
- the value
- a wrapper class (such as
-
getPosition
SourcePosition getPosition()
Returns the source position of the beginning of this annotation value. 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 value begins.
- Returns:
- the source position of the beginning of this annotation value or null if the position is unknown or not applicable
-
-