public class PrettyPrintNodeVisitorFactory extends Object implements NodeVisitorFactory
NodeVisitorFactory to create PrettyPrintNodeVisitor.| Constructor and Description |
|---|
PrettyPrintNodeVisitorFactory() |
| Modifier and Type | Method and Description |
|---|---|
NodeVisitor |
createVisitor(PebbleTemplate template)
This method creates a new instance of a
NodeVisitor. |
public NodeVisitor createVisitor(PebbleTemplate template)
NodeVisitorFactoryNodeVisitor.
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 NodeVisitorFactorytemplate - the template for which a visitor should be created for.Copyright © 2018. All rights reserved.