Class EnumElementValueGen

java.lang.Object
org.apache.bcel.generic.ElementValueGen
org.apache.bcel.generic.EnumElementValueGen

Generates enum element values in annotations.
Since:
6.0
  • Constructor Details

    • 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

      Constructs an EnumElementValueGen.
      Parameters:
      t - the object type.
      value - the value.
      cpool - the constant pool.
  • Method Details