()
| 256 | } |
| 257 | |
| 258 | private List getTail() { |
| 259 | List list = parent().children(); |
| 260 | int afterIndex = list.indexOf(this); |
| 261 | List tail = new ArrayList(list.subList(afterIndex + 1, list.size())); |
| 262 | list.subList(afterIndex + 1, list.size()).clear(); |
| 263 | return tail; |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Adds sibling nodes (defined using builder-style notation via a Closure) after the current node. |