| Constructor and Description |
|---|
DynamicVariable(java.lang.String name,
boolean context) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getInitialExpression()
expression used to initialize the variable or null of there
is no initialization.
|
int |
getModifiers() |
java.lang.String |
getName()
the name of the variable
|
ClassNode |
getOriginType()
the type before wrapping primitives type of the variable
|
ClassNode |
getType()
the type of the variable
|
boolean |
hasInitialExpression()
returns true if there is an initialization expression
|
boolean |
isClosureSharedVariable() |
boolean |
isDynamicTyped() |
boolean |
isInStaticContext()
returns true if this variable is used in a static context.
|
void |
setClosureSharedVariable(boolean inClosure) |
public ClassNode getType()
Variablepublic java.lang.String getName()
Variablepublic Expression getInitialExpression()
VariablegetInitialExpression in interface Variablepublic boolean hasInitialExpression()
VariablehasInitialExpression in interface Variablepublic boolean isInStaticContext()
VariableisInStaticContext in interface Variablepublic boolean isDynamicTyped()
isDynamicTyped in interface Variablepublic boolean isClosureSharedVariable()
isClosureSharedVariable in interface Variablepublic void setClosureSharedVariable(boolean inClosure)
setClosureSharedVariable in interface Variablepublic int getModifiers()
getModifiers in interface Variablepublic ClassNode getOriginType()
VariablegetOriginType in interface Variable