Class ArrayLengthInstruction


  • public class ArrayLengthInstruction
    extends Instruction
    Represents the ARRAYLENGTH instruction (0xBE).
    • Constructor Detail

      • ArrayLengthInstruction

        public ArrayLengthInstruction​(int opcode,
                                      int offset)
        Constructs an ArrayLengthInstruction.
        Parameters:
        opcode - The opcode of the instruction.
        offset - The bytecode offset of the instruction.
    • 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.