Package com.prineside.luaj
Class UpValue
java.lang.Object
com.prineside.luaj.UpValue
- All Implemented Interfaces:
KryoSerializable
Upvalue used with Closure formulation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UpValue
Create an upvalue relative to a stack- Parameters:
stack
- the stackindex
- the index on the stack for the upvalue
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
-
read
- Specified by:
read
in interfaceKryoSerializable
-
toString
-
tojstring
Convert this upvalue to a Java String- Returns:
- the Java String for this upvalue.
- See Also:
-
getValue
Get the value of the upvalue- Returns:
- the
LuaValue
for this upvalue
-
setValue
Set the value of the upvalue- Parameters:
value
- theLuaValue
to set it to
-
close
public final void close()Close this upvalue so it is no longer on the stack
-