Class InvokeinterfaceAgent
java.lang.Object
org.eolang.opeo.decompilation.agents.InvokeinterfaceAgent
- All Implemented Interfaces:
DecompilationAgent
Invokeinterface instruction handler.
Other bytes: 4: indexbyte1, indexbyte2, count, 0
Stack: objectref, [arg1, arg2, ...] → result
Invokes an interface method on object objectref and puts the result on the stack, might be void; the interface method is identified by method reference index in constant pool (indexbyte1 << 8 | indexbyte2)
- Since:
- 0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappropriate(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 opcodes.
-
Constructor Details
-
InvokeinterfaceAgent
public InvokeinterfaceAgent()
-
-
Method Details
-
appropriate
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
Description copied from interface:DecompilationAgentHandle the current state.- Specified by:
handlein interfaceDecompilationAgent- Parameters:
state- Current state to handle together with operand stack and variables.
-