public class FindIjParamsVisitor extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
exec(com.google.template.soy.soytree.TemplateNode) should be called on a TemplateNode.
If you need to call this visitor for multiple templates in the same tree (without modifying the tree), it's more efficient to reuse the same instance of this visitor because we memoize results from previous calls to exec.
| Modifier and Type | Class and Description |
|---|---|
static class |
FindIjParamsVisitor.IjParamsInfo
Return value for
FindIjParamsVisitor. |
| Constructor and Description |
|---|
FindIjParamsVisitor(TemplateRegistry templateRegistry) |
| Modifier and Type | Method and Description |
|---|---|
FindIjParamsVisitor.IjParamsInfo |
exec(TemplateNode rootTemplate)
Computes injected params info for a template.
|
com.google.common.collect.ImmutableMap<TemplateNode,FindIjParamsVisitor.IjParamsInfo> |
execOnAllTemplates(SoyFileSetNode soyTree)
Precomputes injected params info for all templates.
|
public FindIjParamsVisitor(TemplateRegistry templateRegistry)
templateRegistry - Map from template name to TemplateNode to use during the pass.public FindIjParamsVisitor.IjParamsInfo exec(TemplateNode rootTemplate)
Note: This method is not thread-safe. If you need to get injected params info in a
thread-safe manner, then please use execOnAllTemplates(com.google.template.soy.soytree.SoyFileSetNode)() in a thread-safe manner.
public com.google.common.collect.ImmutableMap<TemplateNode,FindIjParamsVisitor.IjParamsInfo> execOnAllTemplates(SoyFileSetNode soyTree)
Note: This method is not thread-safe. If you need to get injected params info in a thread-safe manner, be sure to call this method only once and then use the precomputed map.
soyTree - The full Soy tree.IjParamsInfo is immutable).