public static final class MsgSelectCaseNode.Builder extends Object
MsgSelectCaseNode.| Modifier and Type | Field and Description |
|---|---|
static MsgSelectCaseNode |
ERROR |
| Constructor and Description |
|---|
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
MsgSelectCaseNode |
build(ErrorReporter errorReporter)
Returns a new
MsgSelectCaseNode built from the builder's state. |
MsgSelectCaseNode |
buildAndThrowIfInvalid()
Returns a new
LetContentNode built from the builder's state. |
public static final MsgSelectCaseNode ERROR
public 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 MsgSelectCaseNode build(ErrorReporter errorReporter)
MsgSelectCaseNode built from the builder's state. If the builder's
state is invalid, errors are reported to the errorReporter and ERROR
is returned.public MsgSelectCaseNode buildAndThrowIfInvalid()
LetContentNode built from the builder's state.SoySyntaxException - if the builder's state is invalid.
TODO(user): remove. Only needed by
RewriteGenderMsgsVisitor.