Search in sources :

Example 1 with MathExpr

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

the class TupleExprBuilder method visit.

@Override
public MathExpr visit(ASTMath node, Object data) throws VisitorException {
    ValueExpr leftArg = (ValueExpr) node.jjtGetChild(0).jjtAccept(this, null);
    ValueExpr rightArg = (ValueExpr) node.jjtGetChild(1).jjtAccept(this, null);
    return new MathExpr(leftArg, rightArg, node.getOperator());
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) MathExpr(org.eclipse.rdf4j.query.algebra.MathExpr)

Aggregations

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