Interface DecompilationAgent
-
- All Known Implementing Classes:
AddAgent,AllAgents,BipushAgent,CastAgent,CheckCastAgent,ConstAgent,DummyAgent,DupAgent,GetFieldAgent,GetStaticAgent,IfAgent,InvokedynamicAgent,InvokeinterfaceAgent,InvokespecialAgent,InvokestaticAgent,InvokevirtualAgent,LabelAgent,LdcAgent,LoadAgent,MulAgent,NewAgent,NewArrayAgent,OpcodesAgent,PopAgent,PutFieldAgent,ReturnAgent,StoreAgent,StoreToArrayAgent,SubAgent,TracedAgent
public interface DecompilationAgentAn agent that tries to understand the current decompilation state and apply some changes to it.- Since:
- 0.4
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean appropriate(DecompilerState state)
Check if the agent is suitable for the current state.- Parameters:
state- Current state.- Returns:
- True if the agent is suitable for the current state.
-
supported
org.eolang.opeo.decompilation.agents.Supported supported()
Supported opcodes.- Returns:
- Supported opcodes.
-
handle
void handle(DecompilerState state)
Handle the current state.- Parameters:
state- Current state to handle together with operand stack and variables.
-
-