| 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.error | |
| com.google.template.soy.exprparse |
Parser for Soy expressions.
|
| com.google.template.soy.html.passes | |
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jbcsrc | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.msgs.internal | |
| 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.passes | |
| com.google.template.soy.pysrc.internal | |
| com.google.template.soy.soyparse |
Parser for Soy files and templates.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ErrorReporterImpl
Simple
ErrorReporter implementation. |
| Constructor and Description |
|---|
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
com.google.common.collect.ImmutableMap<String,? extends SoyFileSupplier> soyFileSuppliers,
PassManager passManager,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
CheckConformance.check(ConformanceInput input,
ErrorReporter errorReporter) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractErrorReporter
Abstract ErrorReporter implementation that implements
AbstractErrorReporter.checkpoint() and
errorsSince(Checkpoint) in terms of a template method
AbstractErrorReporter.getCurrentNumberOfErrors(). |
class |
ExplodingErrorReporter
ErrorReporter implementation that throws an AssertionError whenever an error
is reported to it. |
class |
FormattingErrorReporter
ErrorReporter implementation that formats
SoyErrorKinds without attaching source locations. |
| Modifier and Type | Method and Description |
|---|---|
static ErrorReporter |
ExplodingErrorReporter.get() |
| Modifier and Type | Method and Description |
|---|---|
abstract ErrorReporter |
SoyParsingContext.errorReporter() |
| Modifier and Type | Method and Description |
|---|---|
static SoyParsingContext |
SoyParsingContext.create(ErrorReporter errorReporter,
String namespace,
com.google.common.collect.ImmutableMap<String,String> aliasToNamespaceMap) |
static SoyParsingContext |
SoyParsingContext.empty(ErrorReporter errorReporter,
String namespace) |
SoyParsingContext |
SoyParsingContext.withErrorReporter(ErrorReporter errorReporter) |
| Constructor and Description |
|---|
HtmlTransformVisitor(ErrorReporter errorReporter) |
VoidElementVerifyingVisitor(ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
IncrementalDomSrcMain.genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions jsSrcOptions,
String outputPathFormat,
ErrorReporter errorReporter)
Generates Incremental DOM 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> |
IncrementalDomSrcMain.genJsSrc(SoyFileSetNode soyTree,
TemplateRegistry registry,
SoyJsSrcOptions jsSrcOptions,
ErrorReporter errorReporter)
Generates Incremental DOM JS source code given a Soy parse tree, an options object, and an
optional bundle of translated messages.
|
| Constructor and Description |
|---|
GenIncrementalDomExprsVisitor(Map<String,SoyJsSrcPrintDirective> soyJsSrcDirectivesMap,
JsExprTranslator jsExprTranslator,
com.google.template.soy.incrementaldomsrc.IncrementalDomGenCallCodeUtils genCallCodeUtils,
com.google.template.soy.incrementaldomsrc.IsComputableAsIncrementalDomExprsVisitor isComputableAsJsExprsVisitor,
GenIncrementalDomExprsVisitor.GenIncrementalDomExprsVisitorFactory genIncrementalDomExprsVisitorFactory,
ErrorReporter errorReporter,
Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases templateAliases) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<CompiledTemplates> |
BytecodeCompiler.compile(TemplateRegistry registry,
boolean developmentMode,
ErrorReporter reporter)
Compiles all the templates in the given registry.
|
static void |
BytecodeCompiler.compileToJar(TemplateRegistry registry,
ErrorReporter reporter,
com.google.common.io.ByteSink sink)
Compiles all the templates in the given registry to a jar file written to the given output
stream.
|
| Modifier and Type | Field and Description |
|---|---|
protected ErrorReporter |
GenJsCodeVisitor.errorReporter |
| Modifier and Type | Method and Description |
|---|---|
TranslateToJsExprVisitor |
TranslateToJsExprVisitor.TranslateToJsExprVisitorFactory.create(Deque<Map<String,JsExpr>> localVarTranslations,
ErrorReporter errorReporter) |
GenJsExprsVisitor |
GenJsExprsVisitor.GenJsExprsVisitorFactory.create(Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases templateAliases,
ErrorReporter errorReporter) |
List<String> |
GenJsCodeVisitor.gen(SoyFileSetNode node,
TemplateRegistry registry,
ErrorReporter errorReporter) |
JsExpr |
GenCallCodeUtils.genCallExpr(CallNode callNode,
Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases templateAliases,
ErrorReporter errorReporter)
Generates the JS expression for a given call.
|
void |
JsSrcMain.genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions jsSrcOptions,
String locale,
SoyMsgBundle msgBundle,
String outputPathFormat,
String inputPathsPrefix,
ErrorReporter errorReporter)
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,
TemplateRegistry templateRegistry,
SoyJsSrcOptions jsSrcOptions,
SoyMsgBundle msgBundle,
ErrorReporter errorReporter)
Generates JS source code given a Soy parse tree, an options object, and an optional bundle of
translated messages.
|
JsExpr |
GenCallCodeUtils.genObjToPass(CallNode callNode,
Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases templateAliases,
ErrorReporter errorReporter)
Generates the JS expression for the object to pass in a given call.
|
| Constructor and Description |
|---|
GenJsCodeVisitorAssistantForMsgs(GenJsCodeVisitor master,
SoyJsSrcOptions jsSrcOptions,
JsExprTranslator jsExprTranslator,
GenCallCodeUtils genCallCodeUtils,
IsComputableAsJsExprsVisitor isComputableAsJsExprsVisitor,
CodeBuilder<JsExpr> jsCodeBuilder,
Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases functionAliases,
GenJsExprsVisitor genJsExprsVisitor,
ErrorReporter errorReporter) |
GenJsExprsVisitor(Map<String,SoyJsSrcPrintDirective> soyJsSrcDirectivesMap,
JsExprTranslator jsExprTranslator,
GenCallCodeUtils genCallCodeUtils,
IsComputableAsJsExprsVisitor isComputableAsJsExprsVisitor,
GenJsExprsVisitor.GenJsExprsVisitorFactory genJsExprsVisitorFactory,
ErrorReporter errorReporter,
Deque<Map<String,JsExpr>> localVarTranslations,
TemplateAliases templateAliases) |
| Constructor and Description |
|---|
InsertMsgsVisitor(SoyMsgBundle msgBundle,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateNode> |
ContextualAutoescaper.rewrite(SoyFileSetNode fileSet,
TemplateRegistry registry,
ErrorReporter errorReporter)
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 |
|---|---|
PassManager.Builder |
PassManager.Builder.setErrorReporter(ErrorReporter errorReporter) |
| Constructor and Description |
|---|
RewriteRemaindersVisitor(ErrorReporter errorReporter) |
StrictDepsVisitor(TemplateRegistry templateRegistry,
ErrorReporter errorReporter) |
VerifyPhnameAttrOnlyOnPlaceholdersVisitor(ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
GenPyExprsVisitor |
GenPyExprsVisitor.GenPyExprsVisitorFactory.create(com.google.template.soy.pysrc.internal.LocalVariableStack localVarExprs,
ErrorReporter errorReporter) |
MsgFuncGenerator |
MsgFuncGenerator.MsgFuncGeneratorFactory.create(MsgNode node,
com.google.template.soy.pysrc.internal.LocalVariableStack localVarExprs,
ErrorReporter errorReporter) |
void |
PySrcMain.genPyFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyPySrcOptions pySrcOptions,
String outputPathFormat,
String inputPathsPrefix,
ErrorReporter errorReporter)
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,
TemplateRegistry templateRegistry,
SoyPySrcOptions pySrcOptions,
com.google.common.collect.ImmutableMap<String,String> currentManifest,
ErrorReporter errorReporter)
Generates Python source code given a Soy parse tree and an options object.
|
| Constructor and Description |
|---|
SoyFileParser(SoyTypeRegistry typeRegistry,
IdGenerator nodeIdGen,
Reader input,
SoyFileKind soyFileKind,
String filePath,
ErrorReporter errorReporter)
Constructor that takes a reader object providing the input.
|
| Modifier and Type | Field and Description |
|---|---|
protected ErrorReporter |
TemplateNodeBuilder.errorReporter
For reporting parse errors.
|
| Modifier and Type | Method and Description |
|---|---|
XidNode |
XidNode.Builder.build(ErrorReporter errorReporter)
Builds a new
XidNode from the builder's state. |
MsgPluralCaseNode |
MsgPluralCaseNode.Builder.build(ErrorReporter errorReporter)
Builds a new
MsgPluralCaseNode from this builder's state. |
MsgHtmlTagNode |
MsgHtmlTagNode.Builder.build(ErrorReporter errorReporter)
Returns a new
MsgHtmlTagNode built from the builder's state. |
static List<String> |
MsgSubstUnitBaseVarNameUtils.genNoncollidingBaseNamesForExprs(List<ExprNode> exprNodes,
String fallbackBaseName,
ErrorReporter errorReporter)
Generates base names for all the expressions in a list, where for each expression, we use the
shortest candidate base name that does not collide with any of the candidate base names
generated from other expressions in the list.
|
void |
ExprUnion.reportV2ParseErrors(ErrorReporter reporter)
Adds all the errors from trying to parse this as a V2 expression to the given error reporter.
|