| Package | Description |
|---|---|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.data.internal | |
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.sharedpasses.render | |
| com.google.template.soy.tofu |
Java Object backend (a.k.a. Tofu).
|
| com.google.template.soy.tofu.internal |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyDict
A SoyRecord that also implements the SoyMap interface.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SoyMapData
A map data node in a Soy data tree.
|
class |
SoyProtoValueImpl
Soy value that wraps a protocol buffer message object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AugmentedParamStore
Implementation of ParamStore that represents a backing store augmented with additional fields
(params).
|
class |
BasicParamStore
Basic implementation of ParamStore.
|
class |
DictImpl
Frankenstein class that can represent a Soy legacy object map
legacy_object_map<K,V>, a
Soy map map<K, V>, or a Soy record [field1: type1, ...] at runtime. |
class |
ParamStore
Internal-use param store for passing data in subtemplate calls.
|
| Constructor and Description |
|---|
AugmentedParamStore(SoyRecord backingStore,
int expectedKeys) |
| Modifier and Type | Method and Description |
|---|---|
static SoyValueProvider |
JbcSrcRuntime.getFieldProvider(SoyRecord record,
String field)
Helper function to make SoyRecord.getFieldProvider a non-nullable function by returning
JbcSrcRuntime.NULL_PROVIDER for missing fields. |
| Modifier and Type | Method and Description |
|---|---|
CompiledTemplate |
CompiledTemplate.Factory.create(SoyRecord params,
SoyRecord ij)
Returns a new
CompiledTemplate with the given params. |
CompiledTemplate |
RenderContext.getDelTemplate(String calleeName,
String variant,
boolean allowEmpty,
SoyRecord params,
SoyRecord ij) |
| Modifier and Type | Field and Description |
|---|---|
protected SoyRecord |
RenderVisitor.data
The current template data.
|
protected SoyRecord |
RenderVisitor.ijData
The current injected data.
|
| Modifier and Type | Method and Description |
|---|---|
EvalVisitor |
EvalVisitorFactoryImpl.create(Environment env,
SoyRecord ijData,
SoyCssRenamingMap cssRenamingMap,
SoyIdRenamingMap xidRenamingMap,
SoyMsgBundle msgBundle,
boolean debugSoyTemplateInfo) |
EvalVisitor |
EvalVisitor.EvalVisitorFactory.create(Environment env,
SoyRecord ijData,
SoyCssRenamingMap cssRenamingMap,
SoyIdRenamingMap xidRenamingMap,
SoyMsgBundle msgBundle,
boolean debugSoyTemplateInfo)
Creates an EvalVisitor.
|
static Environment |
TestingEnvironment.createForTest(SoyRecord params,
Map<String,SoyValueProvider> locals)
Creates an environment that should only be used in testing environments.
|
protected RenderVisitor |
RenderVisitor.createHelperInstance(Appendable outputBuf,
SoyRecord data)
Creates a helper instance for rendering a subtemplate.
|
| Constructor and Description |
|---|
EvalVisitor(Environment env,
SoyRecord ijData,
SoyCssRenamingMap cssRenamingMap,
SoyIdRenamingMap xidRenamingMap,
SoyMsgBundle msgBundle,
boolean debugSoyTemplateInfo) |
RenderVisitor(EvalVisitor.EvalVisitorFactory evalVisitorFactory,
Appendable outputBuf,
TemplateRegistry templateRegistry,
SoyRecord data,
SoyRecord ijData,
com.google.common.base.Predicate<String> activeDelPackageSelector,
SoyMsgBundle msgBundle,
SoyIdRenamingMap xidRenamingMap,
SoyCssRenamingMap cssRenamingMap,
boolean debugSoyTemplateInfo) |
| Modifier and Type | Method and Description |
|---|---|
String |
SoyTofu.render(SoyTemplateInfo templateInfo,
SoyRecord data,
SoyMsgBundle msgBundle)
Deprecated.
|
String |
SoyTofu.render(String templateName,
SoyRecord data,
SoyMsgBundle msgBundle)
Deprecated.
|
SoyTofu.Renderer |
SoyTofu.Renderer.setData(SoyRecord data)
Sets the data to call the template with.
|
SoyTofu.Renderer |
SoyTofu.Renderer.setIjData(SoyRecord ijData)
Sets the injected data to call the template with.
|
| Modifier and Type | Method and Description |
|---|---|
String |
BaseTofu.render(SoyTemplateInfo templateInfo,
SoyRecord data,
SoyMsgBundle msgBundle)
Deprecated.
|
String |
BaseTofu.render(String templateName,
SoyRecord data,
SoyMsgBundle msgBundle)
Deprecated.
|