public class SoyTemplateInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SoyTemplateInfo.ParamRequisiteness
Enum for whether a param is required or optional for a specific template.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SoyTemplateInfo(String name,
com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap,
com.google.common.collect.ImmutableSortedSet<String> ijParamSet,
String autoescapeMode)
Constructor for internal use only, for the general case.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoescapeMode()
Returns if the current template is using strict auto escaping mode.
|
String |
getName()
Returns the full template name, e.g.
|
com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> |
getParams()
Returns a map from each param to whether it's required for this template.
|
String |
getPartialName()
Returns the partial template name (starting from the last dot), e.g.
|
com.google.common.collect.ImmutableSortedSet<String> |
getUsedIjParams()
Returns the set of injected params used by this template (or a transitive callee).
|
protected SoyTemplateInfo(String name, com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap, com.google.common.collect.ImmutableSortedSet<String> ijParamSet, String autoescapeMode)
Important: Do not construct SoyTemplateInfo objects outside of Soy internal or Soy-generated code. User code that constructs SoyTemplateInfo objects will be broken by future Soy changes.
name - The full template name.paramMap - Map from each param to whether it's required for this template.ijParamSet - Set of injected params used by this template (or a transitive callee).autoescapeMode - The auto escape mode used by this template.public String getName()
myNamespace.myTemplate.public String getPartialName()
.myTemplate.public com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> getParams()
public com.google.common.collect.ImmutableSortedSet<String> getUsedIjParams()
public String getAutoescapeMode()