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()
Variable
public java.lang.String getName()
Variable
public Expression getInitialExpression()
Variable
getInitialExpression
in interface Variable
public boolean hasInitialExpression()
Variable
hasInitialExpression
in interface Variable
public boolean isInStaticContext()
Variable
isInStaticContext
in interface Variable
public boolean isDynamicTyped()
isDynamicTyped
in interface Variable
public boolean isClosureSharedVariable()
isClosureSharedVariable
in interface Variable
public void setClosureSharedVariable(boolean inClosure)
setClosureSharedVariable
in interface Variable
public int getModifiers()
getModifiers
in interface Variable
public ClassNode getOriginType()
Variable
getOriginType
in interface Variable