| Package | Description |
|---|---|
| com.google.template.soy.exprparse |
Parser for Soy expressions.
|
| com.google.template.soy.soytree |
Soy parse tree.
|
| 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) |
static SoyParsingContext |
SoyParsingContext.exploding()
Creates a context with an exploding error reporter and no contextual data.
|
SoyParsingContext |
SoyParsingContext.withErrorReporter(ErrorReporter errorReporter) |
| Constructor and Description |
|---|
ExpressionParser(String input,
SourceLocation parentSourceLocation,
SoyParsingContext context)
Constructor that takes a string input.
|
| Modifier and Type | Method and Description |
|---|---|
SwitchNode |
SwitchNode.Builder.build(SoyParsingContext context)
Returns a new
SwitchNode built from this builder's state, reporting syntax errors
to the given ErrorReporter. |
SwitchCaseNode |
SwitchCaseNode.Builder.build(SoyParsingContext context)
Returns a new
SwitchCaseNode from the state of this builder, reporting syntax errors
to the given ErrorReporter. |
PrintNode |
PrintNode.Builder.build(SoyParsingContext context)
Returns a new
PrintNode built from this builder's state. |
PrintDirectiveNode |
PrintDirectiveNode.Builder.build(SoyParsingContext context)
Returns a new
PrintDirectiveNode from the state of this builder, reporting syntax
errors to the given ErrorReporter. |
MsgSelectNode |
MsgSelectNode.Builder.build(SoyParsingContext context)
Returns a new
MsgSelectNode built from this builder's state, reporting syntax errors
to the given ErrorReporter. |
MsgSelectCaseNode |
MsgSelectCaseNode.Builder.build(SoyParsingContext context)
Returns a new
MsgSelectCaseNode built from the builder's state. |
MsgPluralNode |
MsgPluralNode.Builder.build(SoyParsingContext context)
Returns a new
MsgPluralNode built from the builder's state. |
MsgNode |
MsgNode.Builder.build(SoyParsingContext context)
Returns a new
MsgNode from the state of this builder, reporting syntax errors
to the given ErrorReporter. |
LetValueNode |
LetValueNode.Builder.build(SoyParsingContext context)
Returns a new
LetValueNode built from the builder's state. |
LetContentNode |
LetContentNode.Builder.build(SoyParsingContext context)
Returns a new
LetContentNode built from the builder's state. |
IfCondNode |
IfCondNode.Builder.build(SoyParsingContext context)
Returns a new
IfCondNode built from this builder's state. |
CssNode |
CssNode.Builder.build(SoyParsingContext context)
Returns a new
CssNode built from the builder's state, reporting syntax errors
to the given ErrorReporter. |
CallParamValueNode |
CallParamValueNode.Builder.build(SoyParsingContext context) |
CallParamContentNode |
CallParamContentNode.Builder.build(SoyParsingContext context) |
CallDelegateNode |
CallDelegateNode.Builder.build(SoyParsingContext context) |
CallBasicNode |
CallBasicNode.Builder.build(SoyParsingContext context) |
protected static LetNode.CommandTextParseResult |
LetNode.parseCommandTextHelper(String commandText,
SoyParsingContext context,
SourceLocation sourceLocation)
Helper used by subclass constructors to parse the command text.
|
protected static CallNode.DataAttribute |
CallNode.parseDataAttributeHelper(String dataAttr,
SourceLocation sourceLocation,
SoyParsingContext context)
Private helper function for subclass constructors to parse the 'data' attribute.
|
| Constructor and Description |
|---|
ForNode(int id,
String commandText,
SourceLocation sourceLocation,
SoyParsingContext context) |