Class LoadAgent
- java.lang.Object
-
- org.eolang.opeo.decompilation.agents.LoadAgent
-
- All Implemented Interfaces:
DecompilationAgent
public final class LoadAgent extends Object implements DecompilationAgent
Instruction handler. This handler might understand the following instructions: aload: 1: index | → objectref | load a reference onto the stack from a local variable #index aload_0: → objectref | load a reference onto the stack from local variable 0 ...- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description LoadAgent()
-
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.
-
-
-
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.
-
supported
public org.eolang.opeo.decompilation.agents.Supported supported()
Description copied from interface:DecompilationAgentSupported opcodes.- Specified by:
supportedin interfaceDecompilationAgent- Returns:
- Supported opcodes.
-
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.
-
-