Class SwitchInstruction

    • Field Detail

      • defaultOffset

        public int defaultOffset
      • jumpOffsets

        public int[] jumpOffsets
    • Constructor Detail

      • SwitchInstruction

        public SwitchInstruction()
        Creates an uninitialized SwitchInstruction.
      • SwitchInstruction

        public SwitchInstruction​(byte opcode,
                                 int defaultOffset,
                                 int[] jumpOffsets)
        Creates a new SwitchInstruction with the given arguments. All offsets are relative to this instruction's offset.
    • Method Detail

      • copy

        public SwitchInstruction copy​(SwitchInstruction switchInstruction)
        Copies the given instruction into this instruction.
        Parameters:
        switchInstruction - the instruction to be copied.
        Returns:
        this instruction.
      • toString

        public java.lang.String toString​(int offset)
        Description copied from class: Instruction
        Returns a description of the instruction, at the given offset.
        Overrides:
        toString in class Instruction
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class Instruction