| Package | Description |
|---|---|
| com.google.template.soy.base |
Base classes.
|
| com.google.template.soy.basetree |
Classes shared by Soy parse trees and expression parse trees.
|
| com.google.template.soy.exprparse |
Parser for Soy expressions.
|
| com.google.template.soy.exprtree |
Expression parse tree.
|
| com.google.template.soy.soyparse |
Parser for Soy files and templates.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| com.google.template.soy.soytree.jssrc |
Soy parse tree nodes specific to the JavaScript Src backend.
|
| Modifier and Type | Field and Description |
|---|---|
static SourceLocation |
SourceLocation.UNKNOWN
Deprecated.
There is no reason to use this other than laziness. Soy has complete source
location information.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
SourceLocation.extend(SourceLocation other)
Returns a new SourceLocation that starts where this SourceLocation starts
and ends where
other ends. |
SourceLocation |
SoySyntaxException.getSourceLocation()
The source location at which the error occurred or
UNKNOWN. |
| Modifier and Type | Method and Description |
|---|---|
SoySyntaxException |
SoySyntaxException.associateMetaInfo(SourceLocation srcLoc,
String filePath,
String templateName)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
static SoySyntaxException |
SoySyntaxException.createWithMetaInfo(String message,
SourceLocation srcLoc)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
static SoySyntaxException |
SoySyntaxException.createWithMetaInfo(String message,
SourceLocation srcLoc,
String filePath,
String templateName)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
SourceLocation |
SourceLocation.extend(SourceLocation other)
Returns a new SourceLocation that starts where this SourceLocation starts
and ends where
other ends. |
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
Node.getSourceLocation()
Returns the source location (file path and line number) for this node.
|
| Constructor and Description |
|---|
ExpressionParser(String input,
SourceLocation parentSourceLocation,
ErrorReporter errorReporter)
Constructor that takes a string input.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
AbstractExprNode.getSourceLocation()
TODO(user): The quality of source locations in expression nodes is not great.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExplodingErrorReporter.report(SourceLocation sourceLocation,
SoyError error,
String... args) |
void |
ErrorReporter.report(SourceLocation sourceLocation,
SoyError error,
String... args)
Reports the given
error, formatted according to args and associated with
the given sourceLocation. |
void |
ErrorReporterImpl.report(SourceLocation sourceLocation,
SoyError error,
String... args) |
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
AbstractSoyNode.getSourceLocation()
The location in the file from which this node was parsed or derived.
|
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement |
TemplateNode.createStackTraceElement(SourceLocation srcLocation)
Construct a StackTraceElement that will point to the given source location of the current
template.
|
static IfCondNode.Builder |
IfCondNode.elseifBuilder(int id,
String commandText,
SourceLocation sourceLocation) |
static MsgNode.Builder |
MsgNode.fallbackmsg(int id,
String commandText,
SourceLocation sourceLocation)
Returns a new
MsgNode.Builder representing a fallbackmsg MsgNode. |
static IfCondNode.Builder |
IfCondNode.ifBuilder(int id,
String commandText,
SourceLocation sourceLocation) |
static MsgNode.Builder |
MsgNode.msg(int id,
String commandText,
SourceLocation sourceLocation)
Returns a new
MsgNode.Builder representing a msg MsgNode. |
protected static LetNode.CommandTextParseResult |
LetNode.parseCommandTextHelper(String commandText,
ErrorReporter errorReporter,
SourceLocation sourceLocation)
Helper used by subclass constructors to parse the command text.
|
protected static Pair<Boolean,ExprRootNode> |
CallNode.parseDataAttributeHelper(String dataAttr,
SourceLocation sourceLocation,
ErrorReporter errorReporter)
Private helper function for subclass constructors to parse the 'data' attribute.
|
| Constructor and Description |
|---|
AbstractParentSoyNode(int id,
SourceLocation sourceLocation) |
AbstractSoyNode(int id,
SourceLocation sourceLocation) |
Builder(int id,
boolean isImplicit,
SourceLocation sourceLocation) |
Builder(int id,
com.google.common.collect.ImmutableList<SoyNode.StandaloneNode> children,
SourceLocation sourceLocation) |
Builder(int id,
SourceLocation sourceLocation) |
Builder(int id,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
Builder(int id,
String srcName,
String argsText,
SourceLocation sourceLocation) |
CallNode(int id,
SourceLocation sourceLocation,
String commandName,
CallNode.CommandTextInfo commandTextInfo,
com.google.common.collect.ImmutableList<String> escapingDirectiveNames)
Protected constructor for use by subclasses.
|
CallParamNode(int id,
SourceLocation sourceLocation,
String commandText) |
CaseOrDefaultNode(int id,
SourceLocation sourceLocation,
String commandName,
String commandText) |
DebuggerNode(int id,
SourceLocation sourceLocation) |
ForeachIfemptyNode(int id,
SourceLocation sourceLocation) |
ForeachNode(int id,
ExprRootNode expr,
String commandText,
SourceLocation sourceLocation) |
ForeachNonemptyNode(int id,
String varName,
SourceLocation sourceLocation) |
ForNode(int id,
String commandText,
SourceLocation sourceLocation,
ErrorReporter errorReporter) |
IfCondNode(int id,
SourceLocation sourceLocation,
String commandName,
ExprUnion condition) |
IfElseNode(int id,
SourceLocation sourceLocation) |
IfNode(int id,
SourceLocation sourceLocation) |
LetNode(int id,
SourceLocation sourceLocation,
String localVarName,
String commandText) |
LogNode(int id,
SourceLocation sourceLocation) |
MsgFallbackGroupNode(int id,
SourceLocation sourceLocation) |
MsgPluralDefaultNode(int id,
SourceLocation sourceLocation) |
MsgSelectDefaultNode(int id,
SourceLocation sourceLocation) |
MsgSelectNode(int id,
SourceLocation sourceLocation,
ExprRootNode selectExpr,
String baseSelectVarName) |
RawTextNode(int id,
String rawText,
SourceLocation sourceLocation) |
SwitchDefaultNode(int id,
SourceLocation sourceLocation) |
TemplateBasicNodeBuilder(TemplateNode.SoyFileHeaderInfo soyFileHeaderInfo,
SourceLocation sourceLocation) |
TemplateBasicNodeBuilder(TemplateNode.SoyFileHeaderInfo soyFileHeaderInfo,
SourceLocation sourceLocation,
SoyTypeRegistry typeRegistry) |
TemplateDelegateNodeBuilder(TemplateNode.SoyFileHeaderInfo soyFileHeaderInfo,
SourceLocation sourceLocation) |
TemplateDelegateNodeBuilder(TemplateNode.SoyFileHeaderInfo soyFileHeaderInfo,
SourceLocation sourceLocation,
SoyTypeRegistry typeRegistry) |
TemplateNodeBuilder(TemplateNode.SoyFileHeaderInfo soyFileHeaderInfo,
SourceLocation sourceLocation,
SoyTypeRegistry typeRegistry) |
XidNode(int id,
SourceLocation sourceLocation,
String commandText) |
| Constructor and Description |
|---|
GoogMsgRefNode(int id,
SourceLocation sourceLocation,
String renderedGoogMsgVarName,
com.google.common.collect.ImmutableList<String> escapingDirectiveNames) |