com.sun.tools.javadoc
Class AnnotationValueImpl

java.lang.Object
  extended by com.sun.tools.javadoc.AnnotationValueImpl
All Implemented Interfaces:
AnnotationValue

public class AnnotationValueImpl
extends java.lang.Object
implements AnnotationValue

Represents a value of an annotation type element.

Since:
1.5

Nested Class Summary
private  class AnnotationValueImpl.ToStringVisitor
           
private  class AnnotationValueImpl.ValueVisitor
           
 
Field Summary
private  Attribute attr
           
private  DocEnv env
           
 
Constructor Summary
AnnotationValueImpl(DocEnv env, Attribute attr)
           
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the value.
 java.lang.Object value()
          Returns the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

env

private final DocEnv env

attr

private final Attribute attr
Constructor Detail

AnnotationValueImpl

AnnotationValueImpl(DocEnv env,
                    Attribute attr)
Method Detail

value

public java.lang.Object value()
Returns the value. The type of the returned object is one of the following:

Specified by:
value in interface AnnotationValue
Returns:
the value.

toString

public java.lang.String toString()
Returns a string representation of the value.

Specified by:
toString in interface AnnotationValue
Overrides:
toString in class java.lang.Object
Returns:
the text of a Java language annotation value expression whose value is the value of this annotation type element.