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 Type
    Method
    Description
    boolean
    Check if the agent is suitable for the current state.
    void
    Handle the current state.
    org.eolang.opeo.decompilation.agents.Supported
    Supported opcodes.
  • Method Details

    • 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.