use of org.eclipse.rdf4j.query.parser.serql.ast.ASTBooleanExpr in project rdf4j by eclipse.
the class QueryModelBuilder method visit.
@Override
public ValueExpr visit(ASTAnd 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 And(result, operand);
}
return result;
}
use of org.eclipse.rdf4j.query.parser.serql.ast.ASTBooleanExpr 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