Interface NodeVisitor<N,R>
- Type Parameters:
N
- type of the nodeR
- type of the result of the traversal
- All Known Implementing Classes:
GenerateChangelogVisitor
,GenerateInitialValuesVisitor
public interface NodeVisitor<N,R>
Generic visitor for simple trees.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(NodeVisitor.Control<R> control) Called before traversal starts.void
onFinish
(NodeVisitor.Control<R> control) Called after all nodes have been visited.void
visit
(N node, NodeVisitor.Control<R> control) Called for each node while traversing.
-
Method Details
-
visit
Called for each node while traversing. -
init
Called before traversal starts. -
onFinish
Called after all nodes have been visited. In other words,NodeVisitor.Control.stop()
has not been called.
-