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