Class RouterHandler
java.lang.Object
org.eolang.opeo.decompilation.handlers.RouterHandler
- All Implemented Interfaces:
InstructionHandler
General Instruction Handler.
This handler redirects handling of instructions depending on an incoming instruction.
- Since:
- 0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(DecompilerState state) Handle instruction.String[]
Get supported opcodes.
-
Constructor Details
-
RouterHandler
public RouterHandler(boolean counting) Constructor.- Parameters:
counting
- Do we put numbers to opcodes?
-
-
Method Details
-
handle
Description copied from interface:InstructionHandler
Handle instruction.- Specified by:
handle
in interfaceInstructionHandler
- Parameters:
state
- Current instruction to handle together with operand stack and variables.
-
supportedOpcodes
Get supported opcodes.- Returns:
- Supported opcodes.
-