@Override public OrderbyClause visit(OrderbyClause oc, Void arg) throws CompilationException { List<Expression> newOrderbyList = new ArrayList<>(); for (Expression orderExpr : oc.getOrderbyList()) { newOrderbyList.add((Expression) orderExpr.accept(this, arg)); } OrderbyClause copy = new OrderbyClause(newOrderbyList, new ArrayList<>(oc.getModifierList())); copy.setSourceLocation(oc.getSourceLocation()); return copy; }
@Override public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(OrderbyClause oc, VariableSubstitutionEnvironment env) throws CompilationException { List<Expression> exprList = VariableCloneAndSubstitutionUtil.visitAndCloneExprList(oc.getOrderbyList(), env, this); OrderbyClause oc2 = new OrderbyClause(exprList, new ArrayList<>(oc.getModifierList())); oc2.setNumFrames(oc.getNumFrames()); oc2.setNumTuples(oc.getNumTuples()); oc2.setRangeMap(oc.getRangeMap()); oc2.setSourceLocation(oc.getSourceLocation()); return new Pair<>(oc2, env); }
final public Clause OrderbyClause() throws ParseException, ParseException { OrderbyClause oc = new OrderbyClause(); Expression orderbyExpr; List<Expression> orderbyList = new ArrayList<Expression>();
final public Clause OrderbyClause() throws ParseException, ParseException { OrderbyClause oc = new OrderbyClause(); Expression orderbyExpr; List<Expression> orderbyList = new ArrayList<Expression>();
final public OrderbyClause OrderbyClause() throws ParseException, ParseException { Token startToken = null; OrderbyClause oc = new OrderbyClause(); Expression orderbyExpr; List<Expression> orderbyList = new ArrayList<Expression>();