Class MacroAndBlockRegistrantNodeVisitorFactory
- java.lang.Object
-
- io.pebbletemplates.pebble.extension.core.MacroAndBlockRegistrantNodeVisitorFactory
-
- All Implemented Interfaces:
NodeVisitorFactory
public class MacroAndBlockRegistrantNodeVisitorFactory extends java.lang.Object implements NodeVisitorFactory
Implementation ofNodeVisitorFactoryto handleMacroAndBlockRegistrantNodeVisitor.
-
-
Constructor Summary
Constructors Constructor Description MacroAndBlockRegistrantNodeVisitorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeVisitorcreateVisitor(PebbleTemplate template)This method creates a new instance of aNodeVisitor.
-
-
-
Method Detail
-
createVisitor
public NodeVisitor createVisitor(PebbleTemplate template)
Description copied from interface:NodeVisitorFactoryThis method creates a new instance of aNodeVisitor.The method is called whenever a visitor is applied to a
PebbleTemplate.The method needs to be thread-safe. However the
NodeVisitoritself does not need to be thread-safe.- Specified by:
createVisitorin interfaceNodeVisitorFactory- Parameters:
template- the template for which a visitor should be created for.- Returns:
- the visitor.
-
-