public interface NodeVisitor<Tag extends java.lang.Enum<Tag>>
NodeVisitor
is a basic node visiting interface.Modifier and Type | Interface and Description |
---|---|
static class |
NodeVisitor.Result
NodeVisitor.Result contains possible visitor results. |
Modifier and Type | Method and Description |
---|---|
NodeVisitor.Result |
onBegin(AbstractNode<Tag> node)
Is called before traversing the child nodes.
|
NodeVisitor.Result |
onEnd(AbstractNode<Tag> node)
Is called when all of the child nodes have been traversed.
|
NodeVisitor.Result onBegin(AbstractNode<Tag> node)
node
- the visiting node.NodeVisitor.Result onEnd(AbstractNode<Tag> node)
node
- the visiting node.