@Immutable public final class SoyDocParam 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 |
|---|
SoyDocParam(String name,
boolean isRequired,
String desc) |
| Modifier and Type | Method and Description |
|---|---|
SoyDocParam |
clone() |
SoyDocParam |
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.
|
desc, isInjected, isRequired, kindprotected SoyType type
public TemplateParam.DeclLoc declLoc()
TemplateParamdeclLoc in class TemplateParampublic SoyType type()
VarDefnpublic SoyDocParam copyEssential()
copyEssential in class TemplateParampublic SoyDocParam clone()
public void setLocalVariableIndex(int i)
VarDefnsetLocalVariableIndex in interface VarDefnpublic int localVariableIndex()
VarDefn-1
for ij params.localVariableIndex in interface VarDefn