Void
for visitors that do not need to return results.
Void
for visitors that do not need an
additional parameter.
API Note
In order to initialize the "current path", the scan must be
started by calling one of the scan
methods.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public TreePath | Returns: the current pathReturns the current path for the node, as built up by the currently active set of scan calls. |
public R | |
public R | Returns: the result value from the visit methodthe node to be scanned tree, P a parameter value passed to the visit method p)Overrides com. |
path | back to summary |
---|---|
private TreePath path |
TreePathScanner | back to summary |
---|---|
public TreePathScanner() Constructs a |
getCurrentPath | back to summary |
---|---|
public TreePath getCurrentPath() Returns the current path for the node, as built up by the currently active set of scan calls.
|
scan | back to summary |
---|---|
public R scan(TreePath path, P p) Scans a tree from a position identified by a TreePath.
|
scan | back to summary |
---|---|
public R scan(Tree tree, P p) Overrides com. Scans a single node. The current path is updated for the duration of the scan. API Note This method should normally only be called by the
scanner's
|