Caches and returns all namespace nodes in the namespace structure with a minimum PRE value. @param pre minimum PRE value of a namespace node @return list of namespace nodes
(final int pre)
| 255 | * @return list of namespace nodes |
| 256 | */ |
| 257 | ArrayList<NSNode> cache(final int pre) { |
| 258 | final ArrayList<NSNode> list = new ArrayList<>(); |
| 259 | addNodes(root, list, pre); |
| 260 | return list; |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Recursively adds namespace nodes to a list, starting with the children of a node. |