T
- The return type of the visit operation. Use Void
for
operations with no return type.public interface ParseTreeVisitor<T>
XVisitor
interface for
grammar X
.Modifier and Type | Method and Description |
---|---|
T |
visit(ParseTree tree)
Visit a parse tree, and return a user-defined result of the operation.
|
T |
visitChildren(RuleNode node)
Visit the children of a node, and return a user-defined result of the
operation.
|
T |
visitErrorNode(ErrorNode node)
Visit an error node, and return a user-defined result of the operation.
|
T |
visitTerminal(TerminalNode node)
Visit a terminal node, and return a user-defined result of the operation.
|
T visit(@NotNull ParseTree tree)
tree
- The ParseTree
to visit.T visitChildren(@NotNull RuleNode node)
node
- The RuleNode
whose children should be visited.T visitTerminal(@NotNull TerminalNode node)
node
- The TerminalNode
to visit.Copyright © 1992-2013 ANTLR. All Rights Reserved.