Class BipushInstruction


  • public class BipushInstruction
    extends Instruction
    Represents the BIPUSH instruction (0x10).
    • Constructor Detail

      • BipushInstruction

        public BipushInstruction​(int opcode,
                                 int offset,
                                 int value)
        Constructs a BipushInstruction.
        Parameters:
        opcode - The opcode of the instruction.
        offset - The bytecode offset of the instruction.
        value - The byte value to push onto the stack.
    • Method Detail

      • getStackChange

        public int getStackChange()
        Description copied from class: Instruction
        Returns the change in stack size caused by this instruction.
        Specified by:
        getStackChange in class Instruction
        Returns:
        The stack size change.
      • getLocalChange

        public int getLocalChange()
        Description copied from class: Instruction
        Returns the change in local variables caused by this instruction.
        Specified by:
        getLocalChange in class Instruction
        Returns:
        The local variables size change.
      • getValue

        public byte getValue()
        Returns:
        the value