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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(ArgumentsNode node) void
visit
(AutoEscapeNode node) void
void
void
visit
(ExtendsNode node) void
void
void
void
visit
(ImportNode node) void
visit
(IncludeNode node) void
void
visit
(NamedArgumentNode node) void
Default method invoked with unknown nodes such as nodes provided by user extensions.void
visit
(ParallelNode node) void
visit
(PositionalArgumentNode node) void
void
void
void
-
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
-