@Immutable public final class HeaderParam extends TemplateParam
Important: Do not use outside of Soy code (treat as superpackage-private).
TemplateParam.DeclLocVarDefn.Kind| Modifier and Type | Field and Description |
|---|---|
protected SoyType |
type
The data type of the value.
|
| Constructor and Description |
|---|
HeaderParam(String name,
SourceLocation nameLocation,
SoyType type,
TypeNode typeNode,
boolean isRequired,
boolean isInjected,
String desc) |
| Modifier and Type | Method and Description |
|---|---|
HeaderParam |
copyEssential() |
TemplateParam.DeclLoc |
declLoc()
Returns the location of the parameter declaration.
|
boolean |
equals(Object obj) |
TypeNode |
getTypeNode()
Returns the TypeNode.
|
int |
hashCode() |
int |
localVariableIndex()
Returns the index of this variable in the local variable table of the template or
-1
for ij params. |
String |
name()
The name of this variable.
|
void |
setLocalVariableIndex(int i)
Assigns the index of this variable in the local variable table for its containing template.
|
SoyType |
type()
Returns the data type of this variable.
|
desc, isInjected, isRequired, kind, nameLocation, toStringprotected SoyType type
public TemplateParam.DeclLoc declLoc()
TemplateParamdeclLoc in class TemplateParam@Nullable public TypeNode getTypeNode()
May be null if type parsing failed.
public HeaderParam copyEssential()
copyEssential in class TemplateParampublic SoyType type()
VarDefnpublic void setLocalVariableIndex(int i)
VarDefnsetLocalVariableIndex in interface VarDefnpublic int localVariableIndex()
VarDefn-1
for ij params.localVariableIndex in interface VarDefn