| Package | Description |
|---|---|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.data.restricted | |
| com.google.template.soy.shared.restricted | |
| com.google.template.soy.tofu.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)
Creation function for creating a SoyData object out of any existing primitive, data object, or
data structure.
|
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).
|
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyJavaRuntimePrintDirective.apply(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
SoyData |
SoyJavaRuntimeFunction.compute(List<SoyData> args)
Computes this function on the given arguments.
|
static SoyData |
SoyJavaRuntimeFunctionUtils.toSoyData(boolean value)
Deprecated.
Converts a boolean value to a SoyData (specifically a BooleanData).
|
static SoyData |
SoyJavaRuntimeFunctionUtils.toSoyData(double value)
Deprecated.
Converts a double value to a SoyData (specifically a FloatData).
|
static SoyData |
SoyJavaRuntimeFunctionUtils.toSoyData(int value)
Deprecated.
Converts an int value to a SoyData (specifically an IntegerData).
|
static SoyData |
SoyJavaRuntimeFunctionUtils.toSoyData(String value)
Deprecated.
Converts a String value to a SoyData (specifically a StringData).
|
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyJavaRuntimePrintDirective.apply(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyJavaRuntimePrintDirective.apply(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
SoyData |
SoyJavaRuntimeFunction.compute(List<SoyData> args)
Computes this function on the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
SoyData |
SoyAbstractTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args) |
SoyData |
SoyTofuFunction.computeForTofu(List<SoyData> args)
Computes this function on the given arguments for the Tofu backend.
|
SoyData |
SoyAbstractTofuFunction.computeForTofu(List<SoyData> args) |
static SoyData |
SoyTofuFunctionUtils.toSoyData(boolean value)
Deprecated.
Converts a boolean value to a SoyData (specifically a BooleanData).
|
static SoyData |
SoyTofuFunctionUtils.toSoyData(double value)
Deprecated.
Converts a double value to a SoyData (specifically a FloatData).
|
static SoyData |
SoyTofuFunctionUtils.toSoyData(int value)
Deprecated.
Converts an int value to a SoyData (specifically an IntegerData).
|
static SoyData |
SoyTofuFunctionUtils.toSoyData(String value)
Deprecated.
Converts a String value to a SoyData (specifically a StringData).
|
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
SoyData |
SoyAbstractTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args) |
| Modifier and Type | Method and Description |
|---|---|
SoyData |
SoyTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args)
Applies this directive on the given value.
|
SoyData |
SoyAbstractTofuPrintDirective.applyForTofu(SoyData value,
List<SoyData> args) |
SoyData |
SoyTofuFunction.computeForTofu(List<SoyData> args)
Computes this function on the given arguments for the Tofu backend.
|
SoyData |
SoyAbstractTofuFunction.computeForTofu(List<SoyData> args) |