| Package | Description |
|---|---|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.data.internal | |
| com.google.template.soy.data.restricted | |
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.sharedpasses.render |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyDict
A SoyRecord that also implements the SoyMap interface.
|
interface |
SoyEasyList
Deprecated.
|
interface |
SoyLegacyObjectMap
Deprecated.
This interface is the Java representation of the Soy type
legacy_object_map.
The modern Soy type is map, and its Java representation is SoyMap. Use those
instead. |
interface |
SoyList
A list containing values.
|
interface |
SoyMap
A map containing key-to-value mappings referred to as items.
|
interface |
SoyProtoValue
A value object containing a proto.
|
interface |
SoyRecord
A record containing name-to-value mappings referred to as fields.
|
interface |
SoyValue
Superinterface of all Soy value interfaces/classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SanitizedContent
A chunk of sanitized content of a known kind, e.g.
|
class |
SoyAbstractCachingValueProvider
A SoyValueProvider that lazily computes and caches its value.
|
class |
SoyAbstractValue
Abstract implementation of SoyValue.
|
class |
SoyData
Abstract base class for all nodes in a Soy data tree.
|
class |
SoyFutureValueProvider
Important: Do not use outside of Soy code (treat as superpackage-private).
|
class |
SoyListData
A list data node in a Soy data tree.
|
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 | Method and Description |
|---|---|
SoyValueProvider |
SoyValueConverter.convert(Object obj)
Converts a Java object into an equivalent SoyValueProvider.
|
SoyValueProvider |
SoyMapData.getFieldProvider(String name) |
SoyValueProvider |
SoyProtoValueImpl.getFieldProvider(String name)
Deprecated.
|
SoyValueProvider |
SoyRecord.getFieldProvider(String name)
Gets a provider of a field value of this SoyRecord.
|
SoyValueProvider |
SoyMapData.getItemProvider(SoyValue key) |
SoyValueProvider |
SoyListData.getItemProvider(SoyValue key) |
SoyValueProvider |
SoyLegacyObjectMap.getItemProvider(SoyValue key)
Deprecated.
Gets a provider of an item value of this SoyMap.
|
SoyValueProvider |
SoyProtoValueImpl.getItemProvider(SoyValue key)
Deprecated.
|
SoyValueProvider |
SoyListData.getProvider(int index) |
SoyValueProvider |
SoyList.getProvider(int index)
Gets a provider of a value of this SoyList.
|
SoyValueProvider |
SoyMap.getProvider(SoyValue key)
Gets a provider of an item value of this SoyMap.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends SoyValueProvider> |
SoyListData.asJavaList() |
List<? extends SoyValueProvider> |
SoyList.asJavaList()
Gets a Java list of all value providers in this SoyList.
|
Map<? extends SoyValue,? extends SoyValueProvider> |
SoyMap.asJavaMap()
Gets a Java map of all items in this SoyMap, where mappings are value to value provider.
|
Map<String,? extends SoyValueProvider> |
SoyMapData.asJavaStringMap() |
Map<String,? extends SoyValueProvider> |
SoyDict.asJavaStringMap()
Gets a Java map of all items in this SoyDict, where mappings are string to value provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SoyEasyList.add(SoyValueProvider valueProvider)
Deprecated.
|
| 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 |
EasyListImpl
Deprecated.
|
class |
ListImpl
Internal implementation of SoyList backed by a list of SoyValueProviders.
|
class |
ParamStore
Internal-use param store for passing data in subtemplate calls.
|
class |
SoyMapImpl
A map containing key-to-value mappings referred to as items.
|
| Modifier and Type | Method and Description |
|---|---|
SoyValueProvider |
BasicParamStore.getFieldProvider(String name) |
SoyValueProvider |
AugmentedParamStore.getFieldProvider(String name) |
SoyValueProvider |
DictImpl.getFieldProvider(String name) |
SoyValueProvider |
DictImpl.getItemProvider(SoyValue key) |
SoyValueProvider |
DictImpl.getProvider(SoyValue key) |
SoyValueProvider |
SoyMapImpl.getProvider(SoyValue key) |
| Modifier and Type | Method and Description |
|---|---|
Map<? extends SoyValue,? extends SoyValueProvider> |
DictImpl.asJavaMap() |
Map<? extends SoyValue,? extends SoyValueProvider> |
SoyMapImpl.asJavaMap() |
Map<String,? extends SoyValueProvider> |
DictImpl.asJavaStringMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
EasyListImpl.add(SoyValueProvider valueProvider)
Deprecated.
|
BasicParamStore |
BasicParamStore.setField(String name,
SoyValueProvider valueProvider) |
AugmentedParamStore |
AugmentedParamStore.setField(String name,
SoyValueProvider valueProvider) |
abstract ParamStore |
ParamStore.setField(String name,
SoyValueProvider valueProvider)
Sets a field (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static ListImpl |
ListImpl.forProviderList(com.google.common.collect.ImmutableList<? extends SoyValueProvider> providerList)
Creates a Soy list implementation backed by the given list.
|
static ListImpl |
ListImpl.forProviderList(List<? extends SoyValueProvider> providerList)
Creates a Soy list implementation backed by the given list.
|
static SoyMapImpl |
SoyMapImpl.forProviderMap(Map<? extends SoyValue,? extends SoyValueProvider> providerMap)
Creates a SoyDict implementation for a particular underlying provider map.
|
static DictImpl |
DictImpl.forProviderMap(Map<String,? extends SoyValueProvider> providerMap,
DictImpl.RuntimeType mapType)
Creates a SoyDict implementation for a particular underlying provider map.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyString
A common marker super type for strings.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanData
Boolean data.
|
class |
CollectionData
Abstract superclass for a node in a Soy data tree that represents a collection of data (i.e.
|
class |
FloatData
Float data.
|
class |
IntegerData
Integer data.
|
class |
NullData
Null data.
|
class |
NumberData
Abstract superclass for number data (integers and floats).
|
class |
PrimitiveData
Abstract superclass for a node in a Soy data tree that represents a piece of primitive data (i.e.
|
class |
StringData
String data.
|
class |
UndefinedData
Undefined data.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DetachableContentProvider
A special implementation of
SoyValueProvider to use as a shared base class for the jbcsrc implementations of the generated LetContentNode and CallParamContentNode
implementations. |
class |
DetachableSoyValueProvider
A special implementation of
SoyValueProvider to use as a shared base class for the jbcsrc implementations of the generated LetValueNode and CallParamValueNode
implementations. |
| Modifier and Type | Field and Description |
|---|---|
static SoyValueProvider |
JbcSrcRuntime.NULL_PROVIDER |
| 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. |
static SoyValueProvider |
JbcSrcRuntime.getSoyLegacyObjectMapItem(SoyLegacyObjectMap legacyObjectMap,
SoyValue key) |
static SoyValueProvider |
JbcSrcRuntime.getSoyListItem(List<SoyValueProvider> list,
long index) |
static SoyValueProvider |
JbcSrcRuntime.getSoyMapItem(SoyMap soyMap,
SoyValue key) |
| Modifier and Type | Method and Description |
|---|---|
static SoyValue |
JbcSrcRuntime.resolveSoyValueProvider(SoyValueProvider provider)
Helper function to translate NullData -> null when resolving a SoyValueProvider.
|
| Modifier and Type | Method and Description |
|---|---|
static RenderResult |
JbcSrcRuntime.getListStatus(List<? extends SoyValueProvider> soyValueProviders) |
static RenderResult |
JbcSrcRuntime.getMapStatus(Map<String,? extends SoyValueProvider> soyValueProviders) |
static SoyValueProvider |
JbcSrcRuntime.getSoyListItem(List<SoyValueProvider> list,
long index) |
| Modifier and Type | Method and Description |
|---|---|
static Environment |
TestingEnvironment.createForTest(SoyRecord params,
Map<String,SoyValueProvider> locals)
Creates an environment that should only be used in testing environments.
|