| Package | Description |
|---|---|
| com.google.template.soy.base |
Base classes.
|
| com.google.template.soy.exprparse |
Parser for Soy expressions.
|
| com.google.template.soy.soyparse |
Parser for Soy files and templates.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| 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 |
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).
|
| Constructor and Description |
|---|
ExpressionParser(String input,
SourceLocation parentSourceLocation,
ErrorReporter errorReporter)
Constructor that takes a string input.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
SoyNode.getSourceLocation()
Returns the source location (file path and line number) for this node.
|
SourceLocation |
AbstractSoyNode.getSourceLocation()
The location in the file from which it 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 MsgNode.Builder |
MsgNode.fallbackmsg(int id,
String commandText,
SourceLocation sourceLocation)
Returns a new
MsgNode.Builder representing a fallbackmsg MsgNode. |
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.
|
void |
SoyNode.setSourceLocation(SourceLocation srcLoc)
Sets the source location (file path and line number) for this node.
|
void |
AbstractSoyNode.setSourceLocation(SourceLocation srcLoc) |
void |
SoyFileNode.setSourceLocation(SourceLocation srcLoc) |
| Constructor and Description |
|---|
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) |
ForNode(int id,
String commandText,
SourceLocation sourceLocation,
ErrorReporter errorReporter) |