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.
|
Constructor and Description |
---|
SoyTemplateInfo(String name,
com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap)
Deprecated.
Users should not be creating SoyTemplateInfo objects. If you're constructing
SoyTemplateInfo objects from non-Soy-internal code, your code will be broken by future
Soy changes.
|
SoyTemplateInfo(String name,
com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap,
com.google.common.collect.ImmutableSortedSet<String> ijParamSet,
boolean mayHaveIjParamsInExternalCalls,
boolean mayHaveIjParamsInExternalDelCalls)
Constructor for internal use only, for the general case.
|
Modifier and Type | Method and Description |
---|---|
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).
|
@Deprecated public SoyTemplateInfo(String name, com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap)
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.public SoyTemplateInfo(String name, com.google.common.collect.ImmutableMap<String,SoyTemplateInfo.ParamRequisiteness> paramMap, com.google.common.collect.ImmutableSortedSet<String> ijParamSet, boolean mayHaveIjParamsInExternalCalls, boolean mayHaveIjParamsInExternalDelCalls)
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).mayHaveIjParamsInExternalCalls
- Whether this template may have injected params
indirectly used in external basic calls.mayHaveIjParamsInExternalDelCalls
- Whether this template may have injected params
indirectly used in external delegate calls.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()
#mayHaveIjParamsInExternalCalls()
,
#mayHaveIjParamsInExternalDelCalls()