| Package | Description |
|---|---|
| com.google.template.soy.basicfunctions |
Plugin package for basic functions.
|
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.sharedpasses.render |
| Modifier and Type | Class and Description |
|---|---|
class |
AugmentMapFunction
Soy function that creates a new map equivalent to augmenting an existing map with additional
mappings.
|
class |
CeilingFunction
Soy function that takes the ceiling of a number.
|
class |
DebugSoyTemplateInfoFunction
Soy special function for internal usages.
|
class |
FloatFunction
Soy special function for automatic coercion of an int into a float.
|
class |
FloorFunction
Soy function that takes the floor of a number.
|
class |
KeysFunction
Soy function that gets the keys in a map.
|
class |
LegacyObjectMapToMapFunction
Converts values of type
legacy_object_map to values of type experimental_map. |
class |
LengthFunction
Soy function that gets the length of a list.
|
class |
MapKeysFunction
Soy function that gets the keys in a map.
|
class |
MapToLegacyObjectMapFunction
Converts values of type
map to values of type legacy_object_map. |
class |
MaxFunction
Soy function that takes the max of two numbers.
|
class |
MinFunction
Soy function that takes the min of two numbers.
|
class |
ParseFloatFunction
Soy function that converts a string to a float.
|
class |
ParseIntFunction
Soy function that converts a string to an integer.
|
class |
RandomIntFunction
Soy function that generates a random integer in the range [0, n-1].
|
class |
RangeFunction
The Range function takes 1-3 arguments and generates a sequence of integers, like the python
range function. |
class |
RoundFunction
Soy function that rounds a number to a specified number of digits before or after the decimal
point.
|
| Modifier and Type | Method and Description |
|---|---|
static SoyValue |
JbcSrcRuntime.callSoyFunction(SoyJavaFunction function,
List<SoyValue> args)
Helper function to translate null -> NullData when calling SoyJavaFunctions that may expect it.
|
| Modifier and Type | Method and Description |
|---|---|
SoyJavaFunction |
RenderContext.getFunction(String name) |
| Modifier and Type | Method and Description |
|---|---|
RenderContext.Builder |
RenderContext.Builder.withSoyFunctions(com.google.common.collect.ImmutableMap<String,SoyJavaFunction> functions) |
| Modifier and Type | Method and Description |
|---|---|
protected SoyValue |
EvalVisitor.computeFunctionHelper(SoyJavaFunction fn,
List<SoyValue> args,
FunctionNode fnNode)
Protected helper for
computeFunction. |