use of org.sirix.service.xml.xpath.expr.RangeAxis in project sirix by sirixdb.
the class PipelineBuilder method addRangeExpr.
/**
* Adds a range expression to the pipeline.
*
* @param mTransaction Transaction to operate with.
*/
public void addRangeExpr(final XdmNodeReadTrx mTransaction) {
assert getPipeStack().size() >= 2;
final Axis mOperand2 = getPipeStack().pop().getExpr();
final Axis mOperand1 = getPipeStack().pop().getExpr();
final Axis axis = new RangeAxis(mTransaction, mOperand1, mOperand2);
if (getPipeStack().empty() || getExpression().getSize() != 0) {
addExpressionSingle();
}
getExpression().add(axis);
}
Aggregations