Direct Known Subclasses:
LookupSwitchForm, TableSwitchForm

public abstract class SwitchForm extends VariableInstructionForm
Switch instruction form.
  • Constructor Details

    • SwitchForm

      public SwitchForm(int opcode, String name)
      Constructs a new instance with the specified opcode, name, operandType and rewrite.
      Parameters:
      opcode - index corresponding to the opcode's value.
      name - String printable name of the opcode.
  • Method Details

    • fixUpByteCodeTargets

      public void fixUpByteCodeTargets(ByteCode byteCode, CodeAttribute codeAttribute)
      Description copied from class: ByteCodeForm
      The ByteCodeForm knows how to fix up a bytecode if it needs to be fixed up because it holds a Label bytecode.
      Overrides:
      fixUpByteCodeTargets in class ByteCodeForm
      Parameters:
      byteCode - a ByteCode to be fixed up
      codeAttribute - a CodeAttribute used to determine how the ByteCode should be fixed up.