Class PUSH

java.lang.Object
org.apache.bcel.generic.PUSH
All Implemented Interfaces:
CompoundInstruction, InstructionConstants, VariableLengthInstruction

Wrapper class for push operations, which are implemented either as BIPUSH, LDC or xCONST_n instructions.
  • Constructor Details

    • PUSH

      public PUSH(ConstantPoolGen cp, ArrayType value)
      Pushes an array type constant, for example int[].class, String[].class, and so on.
      Parameters:
      cp - generated constant pool.
      value - to push.
      Since:
      6.7.0
    • PUSH

      public PUSH(ConstantPoolGen cp, boolean value)
      Constructs a PUSH for a boolean value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, Boolean value)
      Constructs a PUSH for a Boolean value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, Character value)
      creates a push object from a Character value. Warning: Make sure not to attempt to allow autoboxing to create this value parameter, as an alternative constructor will be called
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, double value)
      Constructs a PUSH for a double value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, float value)
      Constructs a PUSH for a float value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, int value)
      This constructor also applies for values of type short, char, byte
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, long value)
      Constructs a PUSH for a long value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, Number value)
      Constructs a PUSH for a Number value.
      Parameters:
      cp - Constant pool.
      value - to push.
    • PUSH

      public PUSH(ConstantPoolGen cp, ObjectType value)
      Constructs a PUSH for an ObjectType value.
      Parameters:
      cp - The constant pool.
      value - to push.
      Since:
      6.0
    • PUSH

      public PUSH(ConstantPoolGen cp, String value)
      Constructs a PUSH for a String value.
      Parameters:
      cp - Constant pool.
      value - to push.
  • Method Details