Package org.rascalmpl.interpreter.cursors

Examples of org.rascalmpl.interpreter.cursors.InvertorContext


  public IValue compute(IValue cursor, IValue to, IValue from) {
    checkCursorness("first", cursor);
    checkUnaryFunction("second", to);
    checkUnaryFunction("third", from);
    ICursor c = (ICursor)cursor;
    Context ctx = new InvertorContext(c.getCtx(), (ICallableValue)from);
    ICallableValue f = (ICallableValue)to;
    IValue computed = f.call(new Type[] {c.getWrappedValue().getType()}, new IValue[] { c.getWrappedValue() }, null).getValue();
    return CursorFactory.makeCursor(computed, ctx);
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.cursors.InvertorContext

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.