Class MacroAndBlockRegistrantNodeVisitorFactory
java.lang.Object
io.pebbletemplates.pebble.extension.core.MacroAndBlockRegistrantNodeVisitorFactory
- All Implemented Interfaces:
NodeVisitorFactory
Implementation of
NodeVisitorFactory
to handle MacroAndBlockRegistrantNodeVisitor
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVisitor
(PebbleTemplate template) This method creates a new instance of aNodeVisitor
.
-
Constructor Details
-
MacroAndBlockRegistrantNodeVisitorFactory
public MacroAndBlockRegistrantNodeVisitorFactory()
-
-
Method Details
-
createVisitor
Description copied from interface:NodeVisitorFactory
This 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
NodeVisitor
itself does not need to be thread-safe.- Specified by:
createVisitor
in interfaceNodeVisitorFactory
- Parameters:
template
- the template for which a visitor should be created for.- Returns:
- the visitor.
-