Class AnnotationValueImpl

  • All Implemented Interfaces:
    AnnotationValue

    @Deprecated
    public class AnnotationValueImpl
    extends java.lang.Object
    implements AnnotationValue
    Deprecated.
    Represents a value of an annotation type element.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    Since:
    1.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.sun.tools.javac.code.Attribute attr
      Deprecated.
       
      private DocEnv env
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationValueImpl​(DocEnv env, com.sun.tools.javac.code.Attribute attr)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Deprecated.
      Returns a string representation of the value.
      java.lang.Object value()
      Deprecated.
      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
        Deprecated.
      • attr

        private final com.sun.tools.javac.code.Attribute attr
        Deprecated.
    • Constructor Detail

      • AnnotationValueImpl

        AnnotationValueImpl​(DocEnv env,
                            com.sun.tools.javac.code.Attribute attr)
        Deprecated.
    • Method Detail

      • value

        public java.lang.Object value()
        Deprecated.
        Returns the value. The type of the returned object is one of the following:
        • a wrapper class for a primitive type
        • String
        • Type (representing a class literal)
        • FieldDoc (representing an enum constant)
        • AnnotationDesc
        • AnnotationValue[]
        Specified by:
        value in interface AnnotationValue
        Returns:
        the value.
      • toString

        public java.lang.String toString()
        Deprecated.
        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.