| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.passes | |
| com.google.template.soy.soyparse | |
| com.google.template.soy.types |
Classes that represent Soy parameter type declarations.
|
| com.google.template.soy.types.proto |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSet.Builder |
SoyFileSet.Builder.setLocalTypeRegistry(SoyTypeRegistry typeRegistry)
Override the global type registry with one that is local to this file set.
|
abstract SoyFileSetParser.Builder |
SoyFileSetParser.Builder.setTypeRegistry(SoyTypeRegistry typeRegistry) |
| Constructor and Description |
|---|
IncrementalDomSrcMain(GuiceSimpleScope apiCallScope,
SoyTypeRegistry typeRegistry) |
| Constructor and Description |
|---|
GenJsCodeVisitor(SoyJsSrcOptions jsSrcOptions,
JsExprTranslator jsExprTranslator,
DelTemplateNamer delTemplateNamer,
GenCallCodeUtils genCallCodeUtils,
IsComputableAsJsExprsVisitor isComputableAsJsExprsVisitor,
CanInitOutputVarVisitor canInitOutputVarVisitor,
GenJsExprsVisitor.GenJsExprsVisitorFactory genJsExprsVisitorFactory,
SoyTypeRegistry typeRegistry) |
JsSrcMain(GuiceSimpleScope apiCallScope,
SoyTypeRegistry typeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
PassManager.Builder |
PassManager.Builder.setTypeRegistry(SoyTypeRegistry registry) |
| Constructor and Description |
|---|
SoyFileParser(SoyTypeRegistry typeRegistry,
PluginResolver pluginResolver,
IdGenerator nodeIdGen,
Reader input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter,
com.google.common.collect.ImmutableSet<String> experimentalFeatures)
Constructor that takes a reader object providing the input.
|
| Modifier and Type | Field and Description |
|---|---|
static SoyTypeRegistry |
SoyTypeRegistry.DEFAULT_UNKNOWN
A type registry that defaults all unknown types to the 'unknown' type.
|
| Modifier and Type | Method and Description |
|---|---|
static SoyType |
SoyTypes.computeLowestCommonType(SoyTypeRegistry typeRegistry,
Collection<SoyType> types)
Compute the most specific type that is assignable from all types within a collection.
|
static SoyType |
SoyTypes.computeLowestCommonType(SoyTypeRegistry typeRegistry,
SoyType t0,
SoyType t1)
Compute the most specific type that is assignable from both t0 and t1.
|
SoyType |
SoyTypeProvider.getType(String typeName,
SoyTypeRegistry typeRegistry)
Given a fully-qualified name of a type, return the
SoyType that describes this type, or
null if this type provider does not have a definition for the requested type. |
| Modifier and Type | Method and Description |
|---|---|
SoyType |
SoyProtoTypeProvider.getType(String name,
SoyTypeRegistry typeRegistry) |