use of org.eclipse.rdf4j.query.parser.sparql.ast.ASTDeleteClause in project rdf4j by eclipse.
the class UpdateExprBuilder method visit.
@Override
public Modify visit(ASTModify node, Object data) throws VisitorException {
ASTWhereClause whereClause = node.getWhereClause();
TupleExpr where = null;
if (whereClause != null) {
where = (TupleExpr) whereClause.jjtAccept(this, data);
}
TupleExpr delete = null;
ASTDeleteClause deleteNode = node.getDeleteClause();
if (deleteNode != null) {
delete = (TupleExpr) deleteNode.jjtAccept(this, data);
}
TupleExpr insert = null;
ASTInsertClause insertNode = node.getInsertClause();
if (insertNode != null) {
insert = (TupleExpr) insertNode.jjtAccept(this, data);
}
Modify modifyExpr = new Modify(delete, insert, where);
return modifyExpr;
}
Aggregations