Recursively adds namespace nodes to a list, starting with the children of a node. @param node current namespace node @param list list with namespace nodes @param pre PRE value
(final NSNode node, final List<NSNode> list, final int pre)
| 267 | * @param pre PRE value |
| 268 | */ |
| 269 | private static void addNodes(final NSNode node, final List<NSNode> list, final int pre) { |
| 270 | final int size = node.children(); |
| 271 | int n = Math.max(0, node.find(pre)); |
| 272 | while(n > 0 && (n == size || node.child(n).pre() >= pre)) n--; |
| 273 | for(; n < size; n++) { |
| 274 | final NSNode child = node.child(n); |
| 275 | if(child.pre() >= pre) list.add(child); |
| 276 | addNodes(child, list, pre); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // Updating Namespaces ========================================================================== |
| 281 |