Package com.prineside.luaj
Class UpValue
java.lang.Object
com.prineside.luaj.UpValue
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Upvalue used with Closure formulation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Close this upvalue so it is no longer on the stackfinal LuaValuegetValue()Get the value of the upvaluevoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) final voidSet the value of the upvalueConvert this upvalue to a Java StringtoString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
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
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
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
LuaValuefor this upvalue
-
setValue
Set the value of the upvalue- Parameters:
value- theLuaValueto set it to
-
close
public final void close()Close this upvalue so it is no longer on the stack
-