use of org.sirix.service.xml.xpath.expr.CastableExpr in project sirix by sirixdb.
the class PipelineBuilder method addCastableExpr.
/**
* Adds a castable expression to the pipeline.
*
* @param mTransaction Transaction to operate with.
* @param mSingleType single type the context item will be casted to.
*/
public void addCastableExpr(final XdmNodeReadTrx mTransaction, final SingleType mSingleType) {
assert getPipeStack().size() >= 1;
final Axis candidate = getPipeStack().pop().getExpr();
final Axis axis = new CastableExpr(mTransaction, candidate, mSingleType);
if (getPipeStack().empty() || getExpression().getSize() != 0) {
addExpressionSingle();
}
getExpression().add(axis);
}
Aggregations