public final class NodeTraversal extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
traverse(Node node,
NodeVisitor<T> visitor)
Deprecated.
Specify explicitly if subsidiary nodes shall be visited or not
|
static <T extends Throwable> |
traverse(Node node,
NodeVisitor<T> visitor,
boolean visitSubsidiaryNodes)
Show the visitor around all nodes of the graph of which node is a part
of.
|
public static <T extends Throwable> void traverse(Node node, NodeVisitor<T> visitor, boolean visitSubsidiaryNodes) throws T extends Throwable
T
- Type of a visitor's exceptionnode
- one node of the graphvisitor
- will be shown all reachable nodesvisitSubsidiaryNodes
- shall subsidiary nodes
be
visited or notT
- a checked exception on behalf of the visitorT extends Throwable
public static <T extends Throwable> void traverse(Node node, NodeVisitor<T> visitor) throws T extends Throwable
Node
s of the graph of which top-level node is a part of.
This means that no subsidiary nodes
will be visited
No guarantees are made about the order of the traversal.T
- Type of a visitor's exceptionnode
- one node of the graphvisitor
- will be shown all reachable nodesT
- a checked exception on behalf of the visitorT extends Throwable
traverse(Node, NodeVisitor, boolean)
Copyright © 2017 levigo holding gmbh. All rights reserved.