T - The return type of the visit operation. Use Void for
operations with no return type.AbstractParseTreeVisitorpublic interface ParseTreeVisitor<T>
XVisitor interface for
grammar X.| Modifier and Type | Method | 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(ParseTree tree)
tree - The ParseTree to visit.T visitChildren(RuleNode node)
node - The RuleNode whose children should be visited.T visitTerminal(TerminalNode node)
node - The TerminalNode to visit.Copyright © 1992–2019 ANTLR. All rights reserved.