Class RouterHandler

java.lang.Object
org.eolang.opeo.decompilation.handlers.RouterHandler
All Implemented Interfaces:
InstructionHandler

public final class RouterHandler extends Object implements InstructionHandler
General Instruction Handler. This handler redirects handling of instructions depending on an incoming instruction.
Since:
0.2
  • Constructor Details

    • RouterHandler

      public RouterHandler(boolean counting)
      Constructor.
      Parameters:
      counting - Do we put numbers to opcodes?
  • Method Details

    • handle

      public void handle(DecompilerState state)
      Description copied from interface: InstructionHandler
      Handle instruction.
      Specified by:
      handle in interface InstructionHandler
      Parameters:
      state - Current instruction to handle together with operand stack and variables.
    • supportedOpcodes

      public String[] supportedOpcodes()
      Get supported opcodes.
      Returns:
      Supported opcodes.