| Package | Description |
|---|---|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.data.restricted |
| Modifier and Type | Class and Description |
|---|---|
class |
SanitizedContent
A chunk of sanitized content of a known kind, e.g.
|
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 |
|---|---|
static SoyData |
SoyData.createFromExistingData(Object obj)
Deprecated.
It's best to pass whatever object you have directly to the Soy templates you're
using -- Soy understands primitives, lists, and maps natively, and if you install runtime
support you can also pass protocol buffers. If you're interacting directly with the Soy
runtime and need SoyValue objects, use SoyValueConverter instead.
|
SoyData |
SoyListData.get(int index)
Gets the data value at a given index.
|
SoyData |
SoyMapData.getSingle(String key)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
SoyData |
SoyListData.getSingle(String key)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
| Modifier and Type | Method and Description |
|---|---|
List<SoyData> |
SoyListData.asList()
Important: Please treat this method as superpackage-private.
|
Map<String,SoyData> |
SoyMapData.asMap()
Important: Please treat this method as superpackage-private.
|
Iterator<SoyData> |
SoyListData.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
SoyListData.add(SoyData value)
Adds a data value.
|
void |
SoyMapData.putSingle(String key,
SoyData value)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
void |
SoyListData.putSingle(String key,
SoyData value)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
void |
SoyListData.set(int index,
SoyData value)
Sets a data value at a given index.
|
| 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 | Method and Description |
|---|---|
protected static SoyData |
CollectionData.ensureValidValue(SoyData value)
Ensures that the given value is valid for insertion into a Soy data tree.
|
SoyData |
CollectionData.get(String keyStr)
Gets the data at the specified key string.
|
abstract SoyData |
CollectionData.getSingle(String key)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
| Modifier and Type | Method and Description |
|---|---|
protected static SoyData |
CollectionData.ensureValidValue(SoyData value)
Ensures that the given value is valid for insertion into a Soy data tree.
|
void |
CollectionData.put(String keyStr,
SoyData value)
Puts data into this data tree at the specified key string.
|
abstract void |
CollectionData.putSingle(String key,
SoyData value)
Important: Do not use outside of Soy code (treat as superpackage-private).
|