Class ClassElementValueGen

    • Constructor Detail

      • ClassElementValueGen

        public ClassElementValueGen​(ClassElementValue value,
                                    ConstantPoolGen cpool,
                                    boolean copyPoolEntries)
        Constructs a ClassElementValueGen.
        Parameters:
        value - The class element value.
        cpool - The constant pool generator.
        copyPoolEntries - whether to copy pool entries.
      • ClassElementValueGen

        protected ClassElementValueGen​(int typeIdx,
                                       ConstantPoolGen cpool)
        Constructs a ClassElementValueGen.
        Parameters:
        typeIdx - The type index.
        cpool - The constant pool generator.
    • Method Detail

      • dump

        public void dump​(java.io.DataOutputStream dos)
                  throws java.io.IOException
        Description copied from class: ElementValueGen
        Dumps this element value to a DataOutputStream.
        Specified by:
        dump in class ElementValueGen
        Parameters:
        dos - The output stream.
        Throws:
        java.io.IOException - Thrown if an I/O error occurs.
      • getClassString

        public java.lang.String getClassString()
        Gets the class string.
        Returns:
        The class string.
      • getIndex

        public int getIndex()
        Gets the index.
        Returns:
        The index.