# Class EnumElementValue

java.lang.Object
org.apache.bcel.classfile.ElementValue
org.apache.bcel.classfile.EnumElementValue

public class EnumElementValue extends ElementValue

Since:
  6.0

- ## Field Summary

  ### Fields inherited from class ElementValue

  `ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EnumElementValue(int type, int typeIdx, int valueIdx, ConstantPool cpool)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `dump(DataOutputStream dos)`
  `String`
  `getEnumTypeString()`
  `String`
  `getEnumValueString()`
  `int`
  `getTypeIndex()`
  `int`
  `getValueIndex()`
  `String`
  `stringifyValue()`

  ### Methods inherited from class ElementValue

  `getElementValueType, readElementValue, readElementValue, toShortString, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### EnumElementValue

    public EnumElementValue(int type, int typeIdx, int valueIdx, ConstantPool cpool)

- ## Method Details

  - ### dump

    public void dump(DataOutputStream dos) throws IOException
    Specified by:
      `dump` in class `ElementValue`
    Throws:
      `IOException`

  - ### getEnumTypeString

    public String getEnumTypeString()

  - ### getEnumValueString

    public String getEnumValueString()

  - ### getTypeIndex

    public int getTypeIndex()

  - ### getValueIndex

    public int getValueIndex()

  - ### stringifyValue

    public String stringifyValue()
    Specified by:
      `stringifyValue` in class `ElementValue`