Package com.google.devtools.moe.client.editors

Examples of com.google.devtools.moe.client.editors.InverseTranslator


  private static Translator makeTranslatorFromConfig(
      TranslatorConfig transConfig, ProjectConfig projConfig) throws InvalidProject {
    if (transConfig.isInverse()) {
      TranslatorConfig otherTrans = findInverseTranslatorConfig(transConfig, projConfig);
      return new InverseTranslator(makeStepsFromConfigs(otherTrans.getSteps()),
                                   makeInverseStepsFromConfigs(otherTrans.getSteps()));
    } else {
      return new ForwardTranslator(makeStepsFromConfigs(transConfig.getSteps()));
    }
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.editors.InverseTranslator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.