Fork me on GitHub


In package com.mitchellbosecke.pebble.extension

public interface interface NodeVisitorFactory

The node visitor factory creates {@link NodeVisitor}s.

{@link Extension} can provide own implementation to provide their own {@link NodeVisitor}s.


public NodeVisitor createVisitor(PebbleTemplate template)

This method creates a new instance of a {@link NodeVisitor}.

The method is called whenever a visitor is applied to a {@link PebbleTemplate}.

The method needs to be thread-safe. However the {@link NodeVisitor} itself does not need to be thread-safe.

  • PebbleTemplate template

    the template for which a visitor should be created for.