use of org.sirix.service.xml.xpath.expr.InstanceOfExpr in project sirix by sirixdb.
the class PipelineBuilder method addInstanceOfExpr.
/**
* Adds a instance of expression to the pipeline.
*
* @param mTransaction Transaction to operate with.
* @param mSequenceType sequence type the context item should match.
*/
public void addInstanceOfExpr(final XdmNodeReadTrx mTransaction, final SequenceType mSequenceType) {
assert getPipeStack().size() >= 1;
final Axis candidate = getPipeStack().pop().getExpr();
final Axis axis = new InstanceOfExpr(mTransaction, candidate, mSequenceType);
if (getPipeStack().empty() || getExpression().getSize() != 0) {
addExpressionSingle();
}
getExpression().add(axis);
}
Aggregations