VarDefn.Kind| Modifier and Type | Field and Description |
|---|---|
protected SoyType |
type
The data type of the value.
|
| Constructor and Description |
|---|
UndeclaredVar(String name) |
| Modifier and Type | Method and Description |
|---|---|
UndeclaredVar |
clone() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isInjected()
Returns true if this is an
$ij variable or an @inject param. |
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 |
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.
|
protected SoyType type
public UndeclaredVar(String name)
name - The variable name.public VarDefn.Kind kind()
VarDefnpublic UndeclaredVar clone()
public boolean isInjected()
VarDefn$ij variable or an @inject param.public SoyType type()
VarDefnpublic void setLocalVariableIndex(int i)
VarDefnsetLocalVariableIndex in interface VarDefnpublic int localVariableIndex()
VarDefn-1
for ij params.localVariableIndex in interface VarDefn