Returns the root node of the parse tree. @return The root node
()
| 433 | * @return The root node |
| 434 | */ |
| 435 | public Node.Root getRoot() { |
| 436 | Node n = this; |
| 437 | while (!(n instanceof Node.Root)) { |
| 438 | n = n.getParent(); |
| 439 | } |
| 440 | return (Node.Root) n; |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * Returns the name of the inner class for this node. |
no test coverage detected