| 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 |
FloorFunction
Soy function that takes the floor of a number.
|
class |
KeysFunction
Soy function that gets the keys in a map.
|
class |
MaxFunction
Soy function that takes the max of two numbers.
|
class |
MinFunction
Soy function that takes the min of two numbers.
|
class |
RandomIntFunction
Soy function that generates a random integer in the range [0, n-1].
|
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 |
Runtime.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. |