Interface NodeVisitorFactory
-
- All Known Implementing Classes:
EscaperNodeVisitorFactory,MacroAndBlockRegistrantNodeVisitorFactory,PrettyPrintNodeVisitorFactory
public interface NodeVisitorFactoryThe node visitor factory createsNodeVisitors.Extensioncan provide own implementation to provide their ownNodeVisitors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeVisitorcreateVisitor(PebbleTemplate template)This method creates a new instance of aNodeVisitor.
-
-
-
Method Detail
-
createVisitor
NodeVisitor createVisitor(PebbleTemplate template)
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
NodeVisitoritself does not need to be thread-safe.- Parameters:
template- the template for which a visitor should be created for.- Returns:
- the visitor.
-
-