Example #1
0
 public static NodeValue eval(Expr expr, Binding binding) {
   Context context = ARQ.getContext().copy();
   context.set(ARQConstants.sysCurrentTime, NodeFactoryExtra.nowAsDateTime());
   FunctionEnv env = new ExecutionContext(context, null, null, null);
   NodeValue r = expr.eval(binding, env);
   return r;
 }
Example #2
0
 public static NodeValue parseNodeValue(String s) {
   Node n = NodeFactoryExtra.parseNode(s);
   NodeValue nv = NodeValue.makeNode(n);
   return nv;
 }