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 NameScope
The lua scope in which this variable is defined.boolean
true if there are assignments made to this variableWhen hasassignments == false, and the initial value is a constant, this is the initial valueboolean
true if this variable is an upvaluefinal String
The 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()
-