@Override public IStrategoTerm toStrategoTerm(ITermFactory factory) { IStrategoAppl term = factory.makeAppl(factory.makeConstructor("Var", 1), factory.makeString(_1)); if (getSourceInfo() != null) { getSourceInfo().apply(term); } return term; }
@Override public IStrategoTerm invoke(Context context, IStrategoTerm current) { context.getIOAgent().printError("Input for java-strategy: " + current); ITermFactory factory = context.getFactory(); return factory.makeString("Regards from java-strategy"); }