Class OpcodesAgent
- java.lang.Object
-
- org.eolang.opeo.decompilation.agents.OpcodesAgent
-
- All Implemented Interfaces:
DecompilationAgent
public final class OpcodesAgent extends Object implements DecompilationAgent
Agent that handles opcodes.- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor Description OpcodesAgent(DecompilationAgent original)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappropriate(DecompilerState state)Check if the agent is suitable for the current state.voidhandle(DecompilerState state)Handle the current state.org.eolang.opeo.decompilation.agents.Supportedsupported()Supported opcodes.
-
-
-
Constructor Detail
-
OpcodesAgent
public OpcodesAgent(DecompilationAgent original)
Constructor.- Parameters:
original- Original agent that supports some opcodes.
-
-
Method Detail
-
appropriate
public boolean appropriate(DecompilerState state)
Description copied from interface:DecompilationAgentCheck if the agent is suitable for the current state.- Specified by:
appropriatein interfaceDecompilationAgent- Parameters:
state- Current state.- Returns:
- True if the agent is suitable for the current state.
-
handle
public void handle(DecompilerState state)
Description copied from interface:DecompilationAgentHandle the current state.- Specified by:
handlein interfaceDecompilationAgent- Parameters:
state- Current state to handle together with operand stack and variables.
-
supported
public org.eolang.opeo.decompilation.agents.Supported supported()
Description copied from interface:DecompilationAgentSupported opcodes.- Specified by:
supportedin interfaceDecompilationAgent- Returns:
- Supported opcodes.
-
-