| com.sun.source.util.TreePathScanner
TreePathScanner | public class TreePathScanner extends TreeScanner (Code) | | A TreeVisitor that visits all the child tree nodes, and provides
support for maintaining a path for the parent nodes.
To visit nodes of a particular type, just override the
corresponding visitorXYZ method.
Inside your method, call super.visitXYZ to visit descendant
nodes.
author: Jonathan Gibbons since: 1.6 |
Method Summary | |
public TreePath | getCurrentPath() Get the current path for the node, as built up by the currently
active set of scan calls. | public R | scan(TreePath path, P p) Scan a tree from a position identified by a TreePath. | public R | scan(Tree tree, P p) Scan a single node. |
getCurrentPath | public TreePath getCurrentPath()(Code) | | Get the current path for the node, as built up by the currently
active set of scan calls.
|
scan | public R scan(TreePath path, P p)(Code) | | Scan a tree from a position identified by a TreePath.
|
scan | public R scan(Tree tree, P p)(Code) | | Scan a single node.
The current path is updated for the duration of the scan.
|
|
|