Class ElementValuePair


  • public class ElementValuePair
    extends java.lang.Object
    An annotation's element value pair.
    Since:
    6.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void dump​(java.io.DataOutputStream dos)
      Dumps this element value pair to a DataOutputStream.
      int getNameIndex()
      Gets the name index.
      java.lang.String getNameString()
      Gets the name string.
      ElementValue getValue()
      Gets the value.
      java.lang.String toShortString()
      Gets a short string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementValuePair

        public ElementValuePair​(int elementNameIndex,
                                ElementValue elementValue,
                                ConstantPool constantPool)
        Constructs an ElementValuePair.
        Parameters:
        elementNameIndex - The element name index.
        elementValue - The element value.
        constantPool - The constant pool.
    • Method Detail

      • dump

        protected void dump​(java.io.DataOutputStream dos)
                     throws java.io.IOException
        Dumps this element value pair to a DataOutputStream.
        Parameters:
        dos - The output stream.
        Throws:
        java.io.IOException - Thrown if an I/O error occurs.
      • getNameIndex

        public int getNameIndex()
        Gets the name index.
        Returns:
        The name index.
      • getNameString

        public java.lang.String getNameString()
        Gets the name string.
        Returns:
        The name string.
      • toShortString

        public java.lang.String toShortString()
        Gets a short string representation.
        Returns:
        A short string representation.