Package org.strategoxt.lang

Examples of org.strategoxt.lang.Context


    return result;
  }

  public static IStrategoTerm renameRules(IStrategoTerm term, String oldName, String newName) throws IOException {
    IStrategoTerm result = null;
    Context renameRulesContext = SugarJContexts.renameRulesContext();
    try {
      IStrategoTerm toldName = renameRulesContext.getFactory().makeString(oldName);
      IStrategoTerm tnewName = renameRulesContext.getFactory().makeString(newName);
      result = rename_rules_0_2.instance.invoke(renameRulesContext, term, toldName, tnewName);
    }
    catch (StrategoExit e) {
      if (e.getValue() != 0 || result == null)
        throw new RuntimeException("Stratego extraction failed", e);
View Full Code Here

TOP

Related Classes of org.strategoxt.lang.Context

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.