| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.data.internalutils | |
| com.google.template.soy.data.restricted | |
| com.google.template.soy.shared |
Classes shared between multiple backends or between frontend and backend.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableMap<String,PrimitiveData> |
SoyUtils.parseCompileTimeGlobals(com.google.common.io.CharSource inputSource)
Parses a globals file in the format created by
SoyUtils.generateCompileTimeGlobalsFile(java.util.Map<java.lang.String, ?>, java.lang.Appendable) into a
map from global name to primitive value. |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveData |
InternalValueUtils.convertPrimitiveExprToData(ExprNode.PrimitiveNode primitiveNode)
Converts a primitive expression node into a primitive data object.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableMap<String,PrimitiveData> |
InternalValueUtils.convertCompileTimeGlobalsMap(Map<String,?> compileTimeGlobalsMap)
Converts a compile-time globals map in user-provided format into one in the internal format.
|
| Modifier and Type | Method and Description |
|---|---|
static ExprNode.PrimitiveNode |
InternalValueUtils.convertPrimitiveDataToExpr(PrimitiveData primitiveData,
SourceLocation location)
Converts a primitive data object into a primitive expression node.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanData
Boolean data.
|
class |
FloatData
Float data.
|
class |
IntegerData
Integer data.
|
class |
NullData
Null data.
|
class |
NumberData
Abstract superclass for number data (integers and floats).
|
class |
StringData
String data.
|
class |
UndefinedData
Undefined data.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,PrimitiveData> |
SoyGeneralOptions.getCompileTimeGlobals()
Returns the map from compile-time global name to value.
|