public class LocalVar extends AbstractVarDefn
VarDefn.Kindtype| Constructor and Description |
|---|
LocalVar(String name,
SoyNode.LocalVarNode declaringNode,
SoyType type) |
| Modifier and Type | Method and Description |
|---|---|
LocalVar |
clone() |
SoyNode.LocalVarNode |
declaringNode() |
VarDefn.Kind |
kind()
What kind of variable this is (param, local var, etc).
|
void |
setType(SoyType type)
Setter for the type - this is necessary because sometimes we don't know
the variable type until after analysis.
|
localVariableIndex, name, setLocalVariableIndex, typepublic LocalVar(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 VarDefn.Kind kind()
VarDefnpublic void setType(SoyType type)
type - The data type of the variable.public LocalVar clone()
clone in class AbstractVarDefnpublic SoyNode.LocalVarNode declaringNode()