public abstract class AbstractVarDefn extends Object implements VarDefn
VarDefn.VarDefn.Kind| Modifier and Type | Field and Description |
|---|---|
protected SoyType |
type
The data type of the value.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVarDefn(AbstractVarDefn var) |
|
AbstractVarDefn(String name,
SoyType type) |
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractVarDefn |
clone() |
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.
|
protected SoyType type
public AbstractVarDefn(String name, SoyType type)
name - The name of the value.type - The data type of the value.protected AbstractVarDefn(AbstractVarDefn var)
public SoyType type()
VarDefnpublic void setLocalVariableIndex(int i)
VarDefnsetLocalVariableIndex in interface VarDefnpublic int localVariableIndex()
VarDefn-1
for ij params.localVariableIndex in interface VarDefnpublic abstract AbstractVarDefn clone()