Class 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 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 interface Translation
        Parameters:
        representation - Original representation.
        Returns:
        Translated representation.