public static final class PrintDirectiveNode.Builder extends Object
PrintDirectiveNode.| Constructor and Description |
|---|
PrintDirectiveNode.Builder(int id,
String name,
String argsText,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
PrintDirectiveNode |
build(SoyParsingContext context)
Returns a new
PrintDirectiveNode from the state of this builder, reporting syntax
errors to the given ErrorReporter. |
public PrintDirectiveNode.Builder(int id,
String name,
String argsText,
SourceLocation sourceLocation)
id - The node's id.name - The directive name in source code (including vertical bar).argsText - The text of all the args, or empty string if none (usually empty string).sourceLocation - The node's source location.public PrintDirectiveNode build(SoyParsingContext context)
PrintDirectiveNode from the state of this builder, reporting syntax
errors to the given ErrorReporter.