Class InvokevirtualAgent
- java.lang.Object
-
- org.eolang.opeo.decompilation.agents.InvokevirtualAgent
-
- All Implemented Interfaces:
DecompilationAgent
public final class InvokevirtualAgent extends Object implements DecompilationAgent
Invokevirtual instruction handler.Other bytes: 2: indexbyte1, indexbyte2
objectref, [arg1, arg2, ...] → result
Invoke virtual method on object objectref and puts the result on the stack (might be void). The method is identified by method reference index in constant pool (indexbyte1 << 8 | indexbyte2)
- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description InvokevirtualAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appropriate(DecompilerState state)
Check if the agent is suitable for the current state.void
handle(DecompilerState state)
Handle the current state.org.eolang.opeo.decompilation.agents.Supported
supported()
Supported opcodes.
-
-
-
Method Detail
-
appropriate
public boolean appropriate(DecompilerState state)
Description copied from interface:DecompilationAgent
Check if the agent is suitable for the current state.- Specified by:
appropriate
in 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:DecompilationAgent
Supported opcodes.- Specified by:
supported
in interfaceDecompilationAgent
- Returns:
- Supported opcodes.
-
handle
public void handle(DecompilerState state)
Description copied from interface:DecompilationAgent
Handle the current state.- Specified by:
handle
in interfaceDecompilationAgent
- Parameters:
state
- Current state to handle together with operand stack and variables.
-
-