| Constructor and Description |
|---|
PrintNode.Builder(int id,
boolean isImplicit,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
PrintNode |
build(SoyParsingContext context)
Returns a new
PrintNode built from this builder's state. |
PrintNode.Builder |
exprText(String exprText) |
PrintNode.Builder |
exprUnion(ExprUnion exprUnion) |
PrintNode.Builder |
userSuppliedPlaceholderName(String userSuppliedPlaceholderName) |
public PrintNode.Builder(int id,
boolean isImplicit,
SourceLocation sourceLocation)
id - The node's id.isImplicit - Whether the command print is implicit.sourceLocation - The node's source location.public PrintNode.Builder exprText(String exprText)
exprText - The node's expression text.IllegalStateException - if exprText or exprUnion
has already been set.public PrintNode.Builder exprUnion(ExprUnion exprUnion)
exprUnion - The parsed expression for this print node.IllegalStateException - if exprText or exprUnion
has already been set.public PrintNode.Builder userSuppliedPlaceholderName(String userSuppliedPlaceholderName)
userSuppliedPlaceholderName - The user-supplied placeholder name.public PrintNode build(SoyParsingContext context)
PrintNode built from this builder's state.IllegalStateException - if neither exprText nor exprUnion
have been set.