public static final class TemplateNodeBuilder.DeclInfo extends Object
TemplateNodeBuilder.setHeaderDecls(java.util.Collection<com.google.template.soy.soytree.TemplateNodeBuilder.DeclInfo>).
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateNodeBuilder.DeclInfo.OptionalStatus
Whether this is an optional parameter.
|
static class |
TemplateNodeBuilder.DeclInfo.Type
The type of declaration (either regular param or injected param).
|
| Constructor and Description |
|---|
TemplateNodeBuilder.DeclInfo(TemplateNodeBuilder.DeclInfo.Type type,
TemplateNodeBuilder.DeclInfo.OptionalStatus optionalStatus,
String name,
String paramTypeExpr,
String soyDoc,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
location() |
String |
name() |
String |
paramTypeExpr() |
String |
soyDoc() |
TemplateNodeBuilder.DeclInfo.Type |
type() |
public TemplateNodeBuilder.DeclInfo(TemplateNodeBuilder.DeclInfo.Type type, TemplateNodeBuilder.DeclInfo.OptionalStatus optionalStatus, String name, String paramTypeExpr, @Nullable String soyDoc, SourceLocation sourceLocation)
public TemplateNodeBuilder.DeclInfo.Type type()
public String name()
public String paramTypeExpr()
public SourceLocation location()