Package org.rascalmpl.tasks

Examples of org.rascalmpl.tasks.Transaction


    registry.unlock();
  }
 
  public IValue startTransaction(IEvaluatorContext ctx) {
    if(base == null)
      base = new Transaction(ctx.getStdErr());
    return new Transaction(base, ctx.getStdErr());
  }
View Full Code Here


      base = new Transaction(ctx.getStdErr());
    return new Transaction(base, ctx.getStdErr());
  }
 
  public IValue startTransaction(IValue tr, IEvaluatorContext ctx) {
    return new Transaction(transaction(tr), ctx.getStdErr());
  }
View Full Code Here

      }
    }
   
    public boolean produce(IRascalMonitor monitor, ITransaction<Type, IValue, IValue> tr,
        Type key, IValue name) {
      Transaction t = (Transaction)tr;
      IValue reifiedKey = reify(ctx, key);
      Result<IValue> result = fun.call(monitor, new Type[] {t.getType(), reifiedKey.getType(), name.getType()},
          new IValue[] {t, reifiedKey, name}, null);
      if(result.getValue() instanceof IBool)
        return ((IBool)result.getValue()).getValue();
      else
        throw new UnexpectedType(TypeFactory.getInstance().boolType(), result.getType(), ctx.getCurrentAST());
View Full Code Here

TOP

Related Classes of org.rascalmpl.tasks.Transaction

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.