public static final class SwitchNode.Builder extends Object
SwitchNode.| Constructor and Description |
|---|
SwitchNode.Builder(int id,
String commandText,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
SwitchNode |
build(SoyParsingContext context)
Returns a new
SwitchNode built from this builder's state, reporting syntax errors
to the given ErrorReporter. |
public SwitchNode.Builder(int id,
String commandText,
SourceLocation sourceLocation)
id - The node's id.commandText - The node's command text.sourceLocation - The node's source location.public SwitchNode build(SoyParsingContext context)
SwitchNode built from this builder's state, reporting syntax errors
to the given ErrorReporter.