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 DecompilationAgent
An agent that tries to understand the current decompilation state and apply some changes to it.
- Since:
- 0.4
-
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.
-
Method Details
-
appropriate
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
Handle the current state.- Parameters:
state- Current state to handle together with operand stack and variables.
-