Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JDT
Release 3.5

com.sun.mirror.declaration
Interface AnnotationValue


public interface AnnotationValue

Represents a value of an annotation type element.

Since:
1.5

Method Summary
  SourcePosition getPosition ()
          Returns the source position of the beginning of this annotation value.
  Object getValue ()
          Returns the value.
  String toString ()
          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

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

toString


String toString()
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.

Overrides:
toString in class Object
Returns:
a string representation of this value

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire