public interface VarDefn
| Modifier and Type | Interface and Description |
|---|---|
static class |
VarDefn.Kind
Enum used to distinguish subtypes.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
SoyType |
type()
Returns the data type of this variable.
|
VarDefn.Kind kind()
String name()
SoyType type()
boolean isInjected()
$ij variable or an @inject param.int localVariableIndex()
-1
for ij params.void setLocalVariableIndex(int i)