|Constructor and Description|
|Modifier and Type||Method and Description|
This method is called after all of the children of
begin, copy, enter, enter, finish, finish, lang, leave, override, override, toString, visitEdge, visitEdgeNoOverride
public Node leave(Node parent, Node old, Node n, NodeVisitor v)
nhave been visited. In this case, these children were visited by the visitor
v. This is the last chance for the visitor to modify the tree rooted at
n. This method will be called exactly the same number of times as
entryis called. That is, for each node that is not overridden,
leaveare each called exactly once.
Note that if
old == n then the visitor should make a copy
n before modifying it. It should then return the
The default implementation of this method is to call
leave(old, n, v),
as most subclasses do not need to know the parent of the
parent- The parent of
oldhas no parent.
old- The original state of root of the current subtree.
n- The current state of the root of the current subtree.
NodeVisitorobject used to visit the children.