public interface SyntaxNodeVisitor<Tag extends java.lang.Enum<Tag>>
SyntaxNodeVisitor
is a base interface of a SyntaxNode
visitor.SyntaxNode
Modifier and Type | Interface and Description |
---|---|
static class |
SyntaxNodeVisitor.Result
SyntaxNodeVisitor.Result contains possible visitor results. |
Modifier and Type | Method and Description |
---|---|
SyntaxNodeVisitor.Result |
onBegin(SyntaxNode<Tag> node)
Called before traversing the child nodes.
|
SyntaxNodeVisitor.Result |
onEnd(SyntaxNode<Tag> node)
Called when the child nodes have been traversed.
|
SyntaxNodeVisitor.Result onBegin(SyntaxNode<Tag> node)
node
- the visited node.SyntaxNodeVisitor.Result onEnd(SyntaxNode<Tag> node)
node
- the visited node.