Class TracedAgent.Container
- java.lang.Object
-
- org.eolang.opeo.decompilation.agents.TracedAgent.Container
-
- All Implemented Interfaces:
TracedAgent.Output
- Enclosing class:
- TracedAgent
public static final class TracedAgent.Container extends Object implements TracedAgent.Output
Container output. Output target that stores messages in a container.- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor Description Container()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
agentsUsed()
Get all agents used.Collection<String>
messages()
Get all messages.void
register(Class<? extends DecompilationAgent> agent)
Register an agent that was used.void
write(String message)
Write a message.
-
-
-
Method Detail
-
write
public void write(String message)
Description copied from interface:TracedAgent.Output
Write a message.- Specified by:
write
in interfaceTracedAgent.Output
- Parameters:
message
- Message to write.
-
register
public void register(Class<? extends DecompilationAgent> agent)
Description copied from interface:TracedAgent.Output
Register an agent that was used.- Specified by:
register
in interfaceTracedAgent.Output
- Parameters:
agent
- Agent class used.
-
messages
public Collection<String> messages()
Get all messages.- Returns:
- All messages.
-
-