@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,
String typeSrc,
SoyType type,
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) |
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.
|
String |
toString() |
SoyType |
type()
Returns the data type of this variable.
|
String |
typeSrc()
Returns the original source string for the param type.
|
desc, isInjected, isRequired, kindprotected SoyType type
public TemplateParam.DeclLoc declLoc()
TemplateParamdeclLoc in class TemplateParampublic String typeSrc()
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