VarDefn.Kind| Modifier and Type | Field and Description |
|---|---|
protected SoyType |
type
The data type of the value.
|
| Constructor and Description |
|---|
LoopVar(LoopVar loop,
SoyNode.LocalVarNode declaringNode)
Copy constructor for when the declaring node is being cloned.
|
LoopVar(String name,
SoyNode.LocalVarNode declaringNode,
SoyType type) |
| Modifier and Type | Method and Description |
|---|---|
int |
currentLoopIndexIndex() |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
isLastIteratorIndex() |
VarDefn.Kind |
kind()
What kind of variable this is (param, local var, etc).
|
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 |
setExtraLoopIndices(int currentIndexIndex,
int isLastIndex) |
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.
|
declaringNode, isInjected, setTypeprotected SoyType type
public LoopVar(String name, SoyNode.LocalVarNode declaringNode, SoyType type)
name - The variable name.declaringNode - The statement in which this variable is defined.type - The data type of the variable.public LoopVar(LoopVar loop, SoyNode.LocalVarNode declaringNode)
public VarDefn.Kind kind()
VarDefnpublic void setExtraLoopIndices(int currentIndexIndex,
int isLastIndex)
public int currentLoopIndexIndex()
public int isLastIteratorIndex()
public SoyType type()
VarDefnpublic void setLocalVariableIndex(int i)
VarDefnsetLocalVariableIndex in interface VarDefnpublic int localVariableIndex()
VarDefn-1
for ij params.localVariableIndex in interface VarDefn