Interface ParseTreeVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Known Implementing Classes:
AbstractParseTreeVisitor
public interface ParseTreeVisitor<T>
This interface defines the basic notion of a parse tree visitor. Generated
visitors implement this interface and the
XVisitor interface for
grammar X.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree, and return a user-defined result of the operation.visitChildren(RuleNode node) Visit the children of a node, and return a user-defined result of the operation.visitErrorNode(ErrorNode node) Visit an error node, and return a user-defined result of the operation.visitTerminal(TerminalNode node) Visit a terminal node, and return a user-defined result of the operation.
-
Method Details
-
visit
-
visitChildren
-
visitTerminal
Visit a terminal node, and return a user-defined result of the operation.- Parameters:
node- TheTerminalNodeto visit.- Returns:
- The result of visiting the node.
-
visitErrorNode
-