Class ElementValuePairGen


  • public class ElementValuePairGen
    extends java.lang.Object
    Generates element value pairs in annotations.
    Since:
    6.0
    • Constructor Detail

      • ElementValuePairGen

        public ElementValuePairGen​(ElementValuePair nvp,
                                   ConstantPoolGen cpool,
                                   boolean copyPoolEntries)
        Constructs an ElementValuePairGen from an ElementValuePair.
        Parameters:
        nvp - The element value pair.
        cpool - The constant pool.
        copyPoolEntries - whether to copy pool entries.
    • 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 final java.lang.String getNameString()
        Gets the name string.
        Returns:
        The name string.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object