Search in sources :

Example 1 with ASTCompareAll

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

the class QueryModelBuilder method visit.

@Override
public CompareAll visit(ASTCompareAll node, Object data) throws VisitorException {
    ValueExpr valueExpr = (ValueExpr) node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr) node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();
    return new CompareAll(valueExpr, tupleExpr, op);
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) ASTValueExpr(org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr) CompareAll(org.eclipse.rdf4j.query.algebra.CompareAll) ASTCompareAll(org.eclipse.rdf4j.query.parser.serql.ast.ASTCompareAll) CompareOp(org.eclipse.rdf4j.query.algebra.Compare.CompareOp) TupleExpr(org.eclipse.rdf4j.query.algebra.TupleExpr)

Aggregations

CompareOp (org.eclipse.rdf4j.query.algebra.Compare.CompareOp)1 CompareAll (org.eclipse.rdf4j.query.algebra.CompareAll)1 TupleExpr (org.eclipse.rdf4j.query.algebra.TupleExpr)1 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)1 ASTCompareAll (org.eclipse.rdf4j.query.parser.serql.ast.ASTCompareAll)1 ASTValueExpr (org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr)1