Fork me on GitHub

NodeVisitor

In package com.mitchellbosecke.pebble.extension

public interface 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.

Methods

public void visit(Node node)

Default method invoked with unknown nodes such as nodes provided by user extensions.

Parameters:
  • Node node

    Node to visit

public void visit(ArgumentsNode node)
Parameters:
public void visit(AutoEscapeNode node)
Parameters:
public void visit(BlockNode node)
Parameters:
public void visit(BodyNode node)
Parameters:
public void visit(ExtendsNode node)
Parameters:
public void visit(FlushNode node)
Parameters:
public void visit(ForNode node)
Parameters:
public void visit(IfNode node)
Parameters:
public void visit(ImportNode node)
Parameters:
public void visit(IncludeNode node)
Parameters:
public void visit(MacroNode node)
Parameters:
public void visit(NamedArgumentNode node)
Parameters:
public void visit(ParallelNode node)
Parameters:
public void visit(PositionalArgumentNode node)
Parameters:
public void visit(PrintNode node)
Parameters:
public void visit(RootNode node)
Parameters:
public void visit(SetNode node)
Parameters:
public void visit(TextNode node)
Parameters: