Package org.eolang.jeo
Class LoggedTranslation
- java.lang.Object
-
- org.eolang.jeo.LoggedTranslation
-
- All Implemented Interfaces:
Translation
public final class LoggedTranslation extends Object implements Translation
Translation that leaves a log message before and after applying the original translation.- Since:
- 0.2
-
-
Constructor Summary
Constructors Constructor Description LoggedTranslation(String process, String participle, Translation original)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Representation
apply(Representation representation)
Apply the translation to the original representation.
-
-
-
Constructor Detail
-
LoggedTranslation
public LoggedTranslation(String process, String participle, Translation original)
Constructor.- Parameters:
process
- Process name.participle
- Participle of the process.original
- Original translation.
-
-
Method Detail
-
apply
public Representation apply(Representation representation)
Description copied from interface:Translation
Apply the translation to the original representation.- Specified by:
apply
in interfaceTranslation
- Parameters:
representation
- Original representation.- Returns:
- Translated representation.
-
-