Class EnumElementValueGen

    • Constructor Detail

      • EnumElementValueGen

        public EnumElementValueGen​(EnumElementValue value,
                                   ConstantPoolGen cpool,
                                   boolean copyPoolEntries)
        Constructs an EnumElementValueGen from an EnumElementValue.
        Parameters:
        value - The enum element value.
        cpool - The constant pool.
        copyPoolEntries - whether to copy pool entries.
      • EnumElementValueGen

        protected EnumElementValueGen​(int typeIdx,
                                      int valueIdx,
                                      ConstantPoolGen cpool)
        This constructor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx. This constructor is used for deserialization.
        Parameters:
        typeIdx - The type index.
        valueIdx - The value index.
        cpool - The constant pool.
      • EnumElementValueGen

        public EnumElementValueGen​(ObjectType t,
                                   java.lang.String value,
                                   ConstantPoolGen cpool)
        Constructs an EnumElementValueGen.
        Parameters:
        t - The object type.
        value - The value.
        cpool - The constant pool.
    • 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.
      • getEnumTypeString

        public java.lang.String getEnumTypeString()
        Gets the enum type string.
        Returns:
        The enum type string.
      • getEnumValueString

        public java.lang.String getEnumValueString()
        Gets the enum value string.
        Returns:
        The enum value string.
      • getTypeIndex

        public int getTypeIndex()
        Gets the type index.
        Returns:
        The type index.
      • getValueIndex

        public int getValueIndex()
        Gets the value index.
        Returns:
        The value index.