@Singleton public final class RenderVisitorFactory extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
RenderVisitorFactory(com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> soyJavaDirectivesMap,
EvalVisitor.EvalVisitorFactory evalVisitorFactory) |
| Modifier and Type | Method and Description |
|---|---|
RenderVisitor |
create(Appendable outputBuf,
TemplateRegistry templateRegistry,
SoyRecord data,
SoyRecord ijData,
com.google.common.base.Predicate<String> activeDelPackageSelector,
SoyMsgBundle msgBundle,
SoyIdRenamingMap xidRenamingMap,
SoyCssRenamingMap cssRenamingMap)
Creates a RenderVisitor.
|
@Inject public RenderVisitorFactory(com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> soyJavaDirectivesMap, EvalVisitor.EvalVisitorFactory evalVisitorFactory)
public RenderVisitor create(Appendable outputBuf, TemplateRegistry templateRegistry, SoyRecord data, @Nullable SoyRecord ijData, @Nullable com.google.common.base.Predicate<String> activeDelPackageSelector, @Nullable SoyMsgBundle msgBundle, @Nullable SoyIdRenamingMap xidRenamingMap, @Nullable SoyCssRenamingMap cssRenamingMap)
outputBuf - The Appendable to append the output to.templateRegistry - A registry of all templates.data - The current template data.ijData - The current injected data.activeDelPackageSelector - The predicate for testing whether a given delpackage is active.
Allowed to be null when known to be irrelevant, i.e. when not using delegates feature.msgBundle - The bundle of translated messages, or null to use the messages from the Soy
source.xidRenamingMap - The 'xid' renaming map, or null if not applicable.cssRenamingMap - The CSS renaming map, or null if not applicable.