Package com.prineside.luaj.ast
Class Variable
java.lang.Object
com.prineside.luaj.ast.Variable
Variable is created lua name scopes, and is a named, lua variable that
 either refers to a lua local, global, or upvalue storage location.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionfinal NameScopeThe lua scope in which this variable is defined.booleantrue if there are assignments made to this variableWhen hasassignments == false, and the initial value is a constant, this is the initial valuebooleantrue if this variable is an upvaluefinal StringThe name as it appears in lua source code - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
name
The name as it appears in lua source code - 
definingScope
The lua scope in which this variable is defined. - 
isupvalue
public boolean isupvaluetrue if this variable is an upvalue - 
hasassignments
public boolean hasassignmentstrue if there are assignments made to this variable - 
initialValue
When hasassignments == false, and the initial value is a constant, this is the initial value 
 - 
 - 
Constructor Details
- 
Variable
Global is named variable not associated with a defining scope - 
Variable
 
 - 
 - 
Method Details
- 
isLocal
public boolean isLocal() - 
isConstant
public boolean isConstant() 
 -