private static void argList(ExprList exprList, PropFuncArg pfArg) { if (pfArg.isNode()) { Node n = pfArg.getArg(); Expr expr = ExprUtils.nodeToExpr(n); exprList.add(expr); return; } for (Node n : pfArg.getArgList()) { Expr expr = ExprUtils.nodeToExpr(n); exprList.add(expr); } }
private static ExprList createArgs(List<Node> variables) { ExprList retval = new ExprList(); for (Node n : variables) { retval.add(new ExprVar(n)); } return retval; }