public class EscaperNodeVisitorFactory extends Object implements NodeVisitorFactory
EscaperNodeVisitor
.Constructor and Description |
---|
EscaperNodeVisitorFactory() |
Modifier and Type | Method and Description |
---|---|
NodeVisitor |
createVisitor(PebbleTemplate template)
This method creates a new instance of a
NodeVisitor . |
void |
setAutoEscaping(boolean auto) |
public NodeVisitor createVisitor(PebbleTemplate template)
NodeVisitorFactory
NodeVisitor
.
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.
createVisitor
in interface NodeVisitorFactory
template
- the template for which a visitor should be created for.public void setAutoEscaping(boolean auto)
Copyright © 2019. All rights reserved.