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 Details

    • LoggedTranslation

      public LoggedTranslation(String process, String participle, Translation original)
      Constructor.
      Parameters:
      process - Process name.
      participle - Participle of the process.
      original - Original translation.
  • Method Details

    • apply

      public Representation apply(Representation representation)
      Description copied from interface: Translation
      Apply the translation to the original representation.
      Specified by:
      apply in interface Translation
      Parameters:
      representation - Original representation.
      Returns:
      Translated representation.