Search in sources :

Example 1 with ASTOrderExpr

use of org.eclipse.rdf4j.query.parser.serql.ast.ASTOrderExpr in project rdf4j by eclipse.

the class QueryModelBuilder method visit.

@Override
public List<OrderElem> visit(ASTOrderBy node, Object data) throws VisitorException {
    List<ASTOrderExpr> orderExprList = node.getOrderExprList();
    List<OrderElem> elements = new ArrayList<OrderElem>(orderExprList.size());
    for (ASTOrderExpr orderExpr : orderExprList) {
        elements.add((OrderElem) orderExpr.jjtAccept(this, null));
    }
    return elements;
}
Also used : ArrayList(java.util.ArrayList) OrderElem(org.eclipse.rdf4j.query.algebra.OrderElem) ASTOrderExpr(org.eclipse.rdf4j.query.parser.serql.ast.ASTOrderExpr)

Aggregations

ArrayList (java.util.ArrayList)1 OrderElem (org.eclipse.rdf4j.query.algebra.OrderElem)1 ASTOrderExpr (org.eclipse.rdf4j.query.parser.serql.ast.ASTOrderExpr)1