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