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