public abstract class Environment extends Object
All declared @params and {let ...} statements define variables that are stored
in a table. The mapping between local variable and
New empty environments can be created with the create(com.google.template.soy.soytree.TemplateNode, com.google.template.soy.data.SoyRecord, com.google.template.soy.data.SoyRecord) factory method and seeded with
the bind(com.google.template.soy.exprtree.VarDefn, com.google.template.soy.data.SoyValueProvider) method.
For the most part this class is only used by this package, but it is publicly exposed to aid in testing usecases.
| Modifier and Type | Method and Description |
|---|---|
static Environment |
prerenderingEnvironment()
For Prerendering we create an
Environment for the given template where all entries are
initialized to UndefinedData. |
public static Environment prerenderingEnvironment()
Environment for the given template where all entries are
initialized to UndefinedData.