| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.conformance | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.parseinfo.passes | |
| com.google.template.soy.parsepasses |
Compiler passes used in parsing.
|
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| com.google.template.soy.pysrc.internal | |
| com.google.template.soy.sharedpasses |
Compiler passes shared between multiple backends or between frontend and backend.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| com.google.template.soy.tofu.internal |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSetNode |
SoyFileSetParser.parse()
Parses a set of Soy files, returning a structure containing the parse tree and any errors.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SoySyntaxException> |
CheckConformance.getViolations(SoyFileSetNode root)
Runs the conformance checks from the given AST root.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsSrcMain.genJsFiles(SoyFileSetNode soyTree,
SoyJsSrcOptions jsSrcOptions,
String locale,
SoyMsgBundle msgBundle,
String outputPathFormat,
String inputPathsPrefix)
Generates JS source files given a Soy parse tree, an options object, an optional bundle of
translated messages, and information on where to put the output files.
|
List<String> |
JsSrcMain.genJsSrc(SoyFileSetNode soyTree,
SoyJsSrcOptions jsSrcOptions,
SoyMsgBundle msgBundle)
Generates JS source code given a Soy parse tree, an options object, and an optional bundle of
translated messages.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
GenerateParseInfoVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HandleCssCommandVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
PerformAutoescapeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateNode> |
ContextualAutoescaper.rewrite(SoyFileSetNode fileSet)
Rewrites the given Soy files so that dynamic output is properly escaped according to the
context in which it appears.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PySrcMain.genPyFiles(SoyFileSetNode soyTree,
SoyPySrcOptions pySrcOptions,
String outputPathFormat,
String inputPathsPrefix)
Generates Python source files given a Soy parse tree, an options object, and information on
where to put the output files.
|
List<String> |
PySrcMain.genPySrc(SoyFileSetNode soyTree,
SoyPySrcOptions pySrcOptions)
Generates Python source code given a Soy parse tree and an options object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IsUsingIjDataVisitor.exec(SoyFileSetNode soyTree)
Runs this pass on the given Soy tree.
|
void |
SubstituteGlobalsVisitor.exec(SoyFileSetNode soyTree)
Runs this pass on the given Soy tree.
|
com.google.common.collect.ImmutableMap<TemplateNode,FindIjParamsVisitor.IjParamsInfo> |
FindIjParamsVisitor.execOnAllTemplates(SoyFileSetNode soyTree)
Precomputes injected params info for all templates.
|
com.google.common.collect.ImmutableMap<TemplateNode,FindTransitiveDepTemplatesVisitor.TransitiveDepTemplatesInfo> |
FindTransitiveDepTemplatesVisitor.execOnAllTemplates(SoyFileSetNode soyTree)
Computes transitive dep templates info for all templates in a Soy tree.
|
protected void |
CheckTemplateVisibility.visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
CheckSoyDocVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
BuildAllDependeesMapVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
CheckCallingParamTypesVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSetNode |
SoyFileSetNode.clone() |
SoyFileSetNode |
SoyFileNode.getParent() |
| Modifier and Type | Method and Description |
|---|---|
protected R |
AbstractReturningSoyNodeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
AbstractSoyNodeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Constructor and Description |
|---|
TemplateRegistry(SoyFileSetNode soyTree)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BaseTofu |
BaseTofu.BaseTofuFactory.create(SoyFileSetNode soyTree,
boolean isCaching,
ErrorReporter errorReporter) |
| Constructor and Description |
|---|
BaseTofu(SoyValueHelper valueHelper,
GuiceSimpleScope apiCallScope,
com.google.template.soy.tofu.internal.TofuRenderVisitorFactory tofuRenderVisitorFactory,
SimplifyVisitor simplifyVisitor,
SoyFileSetNode soyTree,
boolean isCaching,
ErrorReporter errorReporter) |