Recursively adds the node and its descendants to the specified list. @param nodes node list
(final ArrayList<PathNode> nodes)
| 159 | * @param nodes node list |
| 160 | */ |
| 161 | void addDesc(final ArrayList<PathNode> nodes) { |
| 162 | nodes.add(this); |
| 163 | for(final PathNode child : children) child.addDesc(nodes); |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Recursively adds the node and its descendants to the specified list with the specified name. |