Class EscaperNodeVisitorFactory
java.lang.Object
io.pebbletemplates.pebble.extension.escaper.EscaperNodeVisitorFactory
- All Implemented Interfaces:
NodeVisitorFactory
Factory class for creating
EscaperNodeVisitor.- Author:
- Thomas Hunziker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVisitor(PebbleTemplate template) This method creates a new instance of aNodeVisitor.voidsetAutoEscaping(boolean auto)
-
Constructor Details
-
EscaperNodeVisitorFactory
public EscaperNodeVisitorFactory()
-
-
Method Details
-
createVisitor
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.
-
setAutoEscaping
public void setAutoEscaping(boolean auto)
-