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