Class TracedAgent
- java.lang.Object
-
- org.eolang.opeo.decompilation.agents.TracedAgent
-
- All Implemented Interfaces:
DecompilationAgent
public final class TracedAgent extends Object implements DecompilationAgent
Agent that knows how to log additional information about a decompilation process.- Since:
- 0.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TracedAgent.Container
Container output.static class
TracedAgent.Log
Log output.static interface
TracedAgent.Output
Output target.
-
Constructor Summary
Constructors Constructor Description TracedAgent(DecompilationAgent original)
Constructor.TracedAgent(DecompilationAgent original, TracedAgent.Output output)
Constructor.
-
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.
-
-
-
Constructor Detail
-
TracedAgent
public TracedAgent(DecompilationAgent original)
Constructor.- Parameters:
original
- Original agent.
-
TracedAgent
public TracedAgent(DecompilationAgent original, TracedAgent.Output output)
Constructor.- Parameters:
original
- Original agent.output
- Output target.
-
-
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.
-
-