Interface NodeVisitor
- All Known Implementing Classes:
AbstractNodeVisitor,EscaperNodeVisitor,MacroAndBlockRegistrantNodeVisitor,PrettyPrintNodeVisitor
public interface NodeVisitor
Will visit all the nodes of the AST provided by the parser. The NodeVisitor is responsible for
the navigating the tree, it can extend AbstractNodeVisitor for help with this.
A NodeVisitor can still use method overloading to visit expressions (it's just not required).
The implementor does not need to make sure that the implementation is thread-safe.
- Author:
- Mitchell
-
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(ArgumentsNode node) voidvisit(AutoEscapeNode node) voidvoidvoidvisit(ExtendsNode node) voidvoidvoidvoidvisit(ImportNode node) voidvisit(IncludeNode node) voidvoidvisit(NamedArgumentNode node) voidDefault method invoked with unknown nodes such as nodes provided by user extensions.voidvisit(ParallelNode node) voidvisit(PositionalArgumentNode node) voidvoidvoidvoid
-
Method Details
-
visit
Default method invoked with unknown nodes such as nodes provided by user extensions.- Parameters:
node- Node to visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-