| Package | Description |
|---|---|
| com.google.template.soy.passes | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| com.google.template.soy.soytree.defn |
Nodes for representing various kinds of variable and parameter definitions.
|
| Modifier and Type | Field and Description |
|---|---|
SortedMap<String,TemplateParam> |
FindIndirectParamsVisitor.IndirectParamsInfo.indirectParams
Map from indirect param key to param object.
|
| Constructor and Description |
|---|
IndirectParamsInfo(SortedMap<String,TemplateParam> indirectParams,
com.google.common.collect.Multimap<String,TemplateNode> paramKeyToCalleesMultimap,
com.google.common.collect.Multimap<String,SoyType> indirectParamTypes,
boolean mayHaveIndirectParamsInExternalCalls,
boolean mayHaveIndirectParamsInExternalDelCalls) |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableList<TemplateParam> |
TemplateNodeBuilder.params
The params from template header and/or SoyDoc.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<TemplateParam> |
TemplateNode.getAllParams()
Returns all params from template header or SoyDoc, both regular and injected.
|
com.google.common.collect.ImmutableList<TemplateParam> |
TemplateNode.getInjectedParams()
Returns the injected params from template header.
|
com.google.common.collect.ImmutableList<TemplateParam> |
TemplateNode.getParams()
Returns the params from template header or SoyDoc.
|
com.google.common.collect.ImmutableList<TemplateParam> |
CallBasicNode.getParamsToRuntimeCheck(TemplateNode callee) |
com.google.common.collect.ImmutableList<TemplateParam> |
CallDelegateNode.getParamsToRuntimeCheck(TemplateNode callee) |
abstract com.google.common.collect.ImmutableList<TemplateParam> |
CallNode.getParamsToRuntimeCheck(TemplateNode callee)
Returns the subset of
params of the callee that require runtime
type checking when this node is being rendered. |
| Modifier and Type | Method and Description |
|---|---|
TemplateDelegateNodeBuilder |
TemplateDelegateNodeBuilder.addParams(Iterable<? extends TemplateParam> allParams) |
TemplateNodeBuilder |
TemplateNodeBuilder.addParams(Iterable<? extends TemplateParam> newParams)
Helper for
setSoyDoc() and setHeaderDecls(). |
TemplateBasicNodeBuilder |
TemplateBasicNodeBuilder.addParams(Iterable<? extends TemplateParam> allParams) |
void |
CallBasicNode.setParamsToRuntimeCheck(Collection<TemplateParam> paramNames)
Sets the names of the params that require runtime type checking against callee's types.
|
void |
CallDelegateNode.setParamsToRuntimeCheck(com.google.common.collect.ImmutableMap<TemplateDelegateNode,com.google.common.collect.ImmutableList<TemplateParam>> paramsToRuntimeCheck)
Sets the params that require runtime type checking for each possible delegate target.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HeaderParam
A parameter declared in the template header.
|
class |
SoyDocParam
A parameter declared in the template SoyDoc.
|
| Modifier and Type | Method and Description |
|---|---|
abstract TemplateParam |
TemplateParam.copyEssential() |