public static final class LetContentNode.Builder extends Object
LetContentNode.| Modifier and Type | Field and Description |
|---|---|
static LetContentNode |
ERROR |
| Constructor and Description |
|---|
Builder(int id,
String commandText,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
LetContentNode |
build(ErrorReporter errorReporter)
Returns a new
LetContentNode built from the builder's state. |
public static final LetContentNode 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 LetContentNode build(ErrorReporter errorReporter)
LetContentNode built from the builder's state. If the builder's state
is invalid, errors are reported to the errorManager and {Builder#ERROR} is returned.