use of org.eclipse.rdf4j.query.parser.serql.ast.ASTCompare 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);
}
Aggregations