Replaces this node with the replacement . @return true if the node was indeed replaced. Replacement fails if this node has no parent. @throws AstException If the replacement is of the wrong type and the location for the replacement does not allow off-type assignments, wh
(Node replacement)
| 65 | * which is true for those nodes that only have an {@code astName()} method and not a {@code rawName()} method. |
| 66 | */ |
| 67 | boolean replace(Node replacement) throws AstException; |
| 68 | |
| 69 | /** |
| 70 | * Severs the child/parent link between this node and its parent. This node's parentage will be set to unparented, and whichever property |
no outgoing calls