use of org.eclipse.rdf4j.query.parser.serql.ast.ASTOr in project rdf4j by eclipse.
the class QueryModelBuilder method visit.
@Override
public ValueExpr visit(ASTOr node, Object data) throws VisitorException {
Iterator<ASTBooleanExpr> iter = node.getOperandList().iterator();
ValueExpr result = (ValueExpr) iter.next().jjtAccept(this, null);
while (iter.hasNext()) {
ValueExpr operand = (ValueExpr) iter.next().jjtAccept(this, null);
result = new Or(result, operand);
}
return result;
}
Aggregations