Class TracedAgent
java.lang.Object
org.eolang.opeo.decompilation.agents.TracedAgent
- All Implemented Interfaces:
DecompilationAgent
Agent that knows how to log additional information about a decompilation process.
- Since:
- 0.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContainer output.static final classLog output.static interfaceOutput target. -
Constructor Summary
ConstructorsConstructorDescriptionTracedAgent(DecompilationAgent original) Constructor.TracedAgent(DecompilationAgent original, TracedAgent.Output output) Constructor. -
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
-
TracedAgent
Constructor.- Parameters:
original- Original agent.
-
TracedAgent
Constructor.- Parameters:
original- Original agent.output- Output target.
-
-
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.
-