FileDocCategorySizeDatePackage
AnnotationValue.javaAPI DocJava SE 5 API1743Fri Aug 26 14:55:14 BST 2005com.sun.mirror.declaration

AnnotationValue

public interface AnnotationValue
Represents a value of an annotation type element.
author
Joseph D. Darcy
author
Scott Seligman
version
1.6 04/07/19
since
1.5

Fields Summary
Constructors Summary
Methods Summary
public com.sun.mirror.util.SourcePositiongetPosition()
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.

return
the source position of the beginning of this annotation value or null if the position is unknown or not applicable

public java.lang.ObjectgetValue()
Returns the value. The result has one of the following types:
  • a wrapper class (such as {@link Integer}) for a primitive type
  • {@code String}
  • {@code TypeMirror}
  • {@code EnumConstantDeclaration}
  • {@code AnnotationMirror}
  • {@code Collection} (representing the elements, in order, if the value is an array)

return
the value

public java.lang.StringtoString()
Returns a string representation of this value. This is returned in a form suitable for representing this value in the source code of an annotation.

return
a string representation of this value