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 void
close()
Close this upvalue so it is no longer on the stackfinal LuaValue
getValue()
Get the value of the upvaluevoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) final void
Set the value of the upvalueConvert this upvalue to a Java StringtoString()
void
write
(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:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in 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
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
-