stack.getLevelIndex(), stack.getConstraints());
}
// if an interval constraint has been set for the current node
else if (lowerBound != -1 && upperBound != -1) {
// use the interval constraint of the current node
return new SingleIntervalConstrainedNodesEnum(sirenDocsEnum,
levelConstraint, new int[] { lowerBound, upperBound });
}
// if only a level constraint has been set for the current node
else if (levelConstraint != -1) {
return new LevelConstrainedNodesEnum(sirenDocsEnum, levelConstraint);