use of org.eclipse.rdf4j.query.algebra.Compare.CompareOp in project rdf4j by eclipse.
the class QueryModelBuilder method visit.
@Override
public CompareAny visit(ASTCompareAny 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 CompareAny(valueExpr, tupleExpr, op);
}
use of org.eclipse.rdf4j.query.algebra.Compare.CompareOp in project rdf4j by eclipse.
the class QueryModelBuilder method visit.
@Override
public Compare visit(ASTCompare node, Object data) throws VisitorException {
ValueExpr leftArg = (ValueExpr) node.getLeftOperand().jjtAccept(this, null);
ValueExpr rightArg = (ValueExpr) node.getRightOperand().jjtAccept(this, null);
CompareOp operator = node.getOperator().getValue();
return new Compare(leftArg, rightArg, operator);
}
use of org.eclipse.rdf4j.query.algebra.Compare.CompareOp 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);
}
Aggregations