Search in sources :

Example 1 with Coalesce

use of org.eclipse.rdf4j.query.algebra.Coalesce in project rdf4j by eclipse.

the class TupleExprBuilder method visit.

@Override
public Coalesce visit(ASTCoalesce node, Object data) throws VisitorException {
    Coalesce coalesce = new Coalesce();
    int noOfArgs = node.jjtGetNumChildren();
    for (int i = 0; i < noOfArgs; i++) {
        ValueExpr arg = (ValueExpr) node.jjtGetChild(i).jjtAccept(this, data);
        coalesce.addArgument(arg);
    }
    return coalesce;
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) Coalesce(org.eclipse.rdf4j.query.algebra.Coalesce)

Aggregations

Coalesce (org.eclipse.rdf4j.query.algebra.Coalesce)1 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)1