Class ArrayElementValueGen

    • Constructor Detail

      • ArrayElementValueGen

        public ArrayElementValueGen​(ArrayElementValue value,
                                    ConstantPoolGen cpool,
                                    boolean copyPoolEntries)
        Constructs an ArrayElementValueGen.
        Parameters:
        value - The array element value.
        cpool - The constant pool generator.
        copyPoolEntries - whether to copy pool entries.
      • ArrayElementValueGen

        public ArrayElementValueGen​(int type,
                                    ElementValue[] elementValues,
                                    ConstantPoolGen cpool)
        Constructs an ArrayElementValueGen.
        Parameters:
        type - The type.
        elementValues - The element values.
        cpool - The constant pool generator.
    • Method Detail

      • addElement

        public void addElement​(ElementValueGen gen)
        Adds an element.
        Parameters:
        gen - The element value generator.
      • 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.
      • getElementValuesSize

        public int getElementValuesSize()
        Gets the element values size.
        Returns:
        The element values size.