| 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 | |
| com.google.template.soy.types.proto |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyDict
A SoyRecord that also implements the SoyMap interface.
|
interface |
SoyEasyDict
A mutable SoyDict with additional methods for ease-of-use.
|
interface |
SoyEasyList
A mutable list with additional methods for ease-of-use.
|
interface |
SoyList
A list containing values.
|
interface |
SoyMap
A map containing key-to-value mappings referred to as items.
|
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 |
SoyAbstractCachingRecord
Abstract implementation of SoyRecord that caches previously retrieved field value providers.
|
class |
SoyAbstractCachingValueProvider
A SoyValueProvider that lazily computes and caches its value.
|
class |
SoyAbstractList
Abstract implementation of SoyList.
|
class |
SoyAbstractMap
Abstract implementation of SoyMap.
|
class |
SoyAbstractRecord
Abstract implementation of SoyRecord.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
SoyValueProvider |
SoyValueHelper.convert(Object obj)
Converts a Java object into an equivalent SoyValueProvider.
|
SoyValueProvider |
SoyValueConverter.convert(Object obj)
Converts the given object into a corresponding SoyValue or SoyValueProvider.
|
SoyValueProvider |
SoyCustomValueConverter.convert(SoyValueConverter valueConverter,
Object obj)
Converts the given object into a corresponding SoyValue or SoyValueProvider.
|
SoyValueProvider |
SoyRecord.getFieldProvider(String name)
Gets a provider of a field value of this SoyRecord.
|
SoyValueProvider |
SoyMapData.getFieldProvider(String name) |
SoyValueProvider |
SoyAbstractCachingRecord.getFieldProvider(String name) |
abstract SoyValueProvider |
SoyAbstractCachingRecord.getFieldProviderInternal(String name)
Gets a provider of a field value of this SoyRecord.
|
SoyValueProvider |
SoyMapData.getItemProvider(SoyValue key) |
SoyValueProvider |
SoyMap.getItemProvider(SoyValue key)
Gets a provider of an item value of this SoyMap.
|
SoyValueProvider |
SoyListData.getItemProvider(SoyValue key) |
SoyValueProvider |
SoyAbstractList.getItemProvider(SoyValue key) |
SoyValueProvider |
SoyListData.getProvider(int index) |
SoyValueProvider |
SoyList.getProvider(int index)
Gets a provider of a value of this SoyList.
|
SoyValueProvider |
SoyEasyDict.getProvider(String dottedName)
Gets a provider of a subfield value of this dict.
|
| 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<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(int index,
SoyValueProvider valueProvider)
Adds a value to this SoyList at a given index.
|
void |
SoyEasyList.add(SoyValueProvider valueProvider)
Adds a value to the end of this SoyList.
|
void |
SoyEasyList.set(int index,
SoyValueProvider valueProvider)
Sets a value in this SoyList.
|
void |
SoyEasyDict.setField(String name,
SoyValueProvider valueProvider)
Sets a field of this dict.
|
| 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
Internal implementation of SoyDict in terms of a map.
|
class |
EasyDictImpl
Internal implementation of SoyEasyDict.
|
class |
EasyListImpl
Internal implementation of SoyEasyList.
|
class |
ListImpl
Internal implementation of SoyList backed by a list of SoyValueProviders.
|
class |
ParamStore
Internal-use param store for passing data in subtemplate calls.
|
| Modifier and Type | Method and Description |
|---|---|
SoyValueProvider |
BasicParamStore.getFieldProvider(String name) |
SoyValueProvider |
AugmentedParamStore.getFieldProvider(String name) |
SoyValueProvider |
EasyDictImpl.getProvider(String dottedName) |
| Modifier and Type | Method and Description |
|---|---|
void |
EasyListImpl.add(int index,
SoyValueProvider valueProvider) |
void |
EasyListImpl.add(SoyValueProvider valueProvider) |
void |
EasyListImpl.set(int index,
SoyValueProvider valueProvider) |
abstract ParamStore |
ParamStore.setField(String name,
SoyValueProvider valueProvider)
Sets a field (i.e.
|
void |
EasyDictImpl.setField(String name,
SoyValueProvider valueProvider) |
BasicParamStore |
BasicParamStore.setField(String name,
SoyValueProvider valueProvider) |
AugmentedParamStore |
AugmentedParamStore.setField(String name,
SoyValueProvider valueProvider) |
| Modifier and Type | Method and Description |
|---|---|
static ListImpl |
ListImpl.forProviderList(List<? extends SoyValueProvider> providerList)
Creates a Soy list implementation backed by the given map.
|
static DictImpl |
DictImpl.forProviderMap(Map<String,? extends SoyValueProvider> providerMap)
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 |
Runtime.NULL_PROVIDER |
| Modifier and Type | Method and Description |
|---|---|
static SoyValueProvider |
Runtime.getFieldProvider(SoyRecord record,
String field)
Helper function to make SoyRecord.getFieldProvider a non-nullable function by returning
Runtime.NULL_PROVIDER for missing fields. |
static SoyValueProvider |
Runtime.getSoyListItem(List<SoyValueProvider> list,
long index) |
static SoyValueProvider |
Runtime.getSoyMapItem(SoyMap soyMap,
SoyValue key) |
| Modifier and Type | Method and Description |
|---|---|
static SoyValue |
Runtime.resolveSoyValueProvider(SoyValueProvider provider)
Helper function to translate NullData -> null when resolving a SoyValueProvider that may
have come from SoyValueProvider.
|
| Modifier and Type | Method and Description |
|---|---|
static SoyValueProvider |
Runtime.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.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SoyProtoTypeImpl.Value
Interface used to indicate that a value is a proto.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SoyProtoValue
Soy value that wraps a protocol buffer message object.
|
| Modifier and Type | Method and Description |
|---|---|
SoyValueProvider |
SoyProtoValueConverter.convert(SoyValueConverter valueConverter,
Object obj) |
SoyValueProvider |
SoyProtoValue.getFieldProviderInternal(String name) |
SoyValueProvider |
SoyProtoValue.getItemProvider(SoyValue key) |