Package com.prineside.luaj.lib.jse
Class JavaInstance
java.lang.Object
com.prineside.luaj.Varargs
com.prineside.luaj.LuaValue
com.prineside.luaj.LuaUserdata
com.prineside.luaj.lib.jse.JavaInstance
- All Implemented Interfaces:
- com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
- JavaClass
LuaValue that represents a Java instance.
 
Will respond to get() and set() by returning field values or methods.
 This class is not used directly.  
 It is returned by calls to CoerceJavaToLua.coerce(Object) 
 when a subclass of Object is supplied.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.prineside.luaj.LuaValueLuaValue.NillableSerializer, LuaValue.NoneNested classes/interfaces inherited from class com.prineside.luaj.VarargsVarargs.ArrayVarargs
- 
Field SummaryFields inherited from class com.prineside.luaj.LuaUserdatam_instance, m_metatableFields inherited from class com.prineside.luaj.LuaValueADD, CALL, CONCAT, DIV, EMPTYSTRING, ENV, EQ, FALSE, INDEX, LE, LEN, LT, METATABLE, MINUSONE, MOD, MODE, MUL, NEWINDEX, NIL, NILLABLE_SERIALIZER, NILS, NONE, NOVALS, ONE, POW, SUB, TBOOLEAN, TFUNCTION, TINT, TLIGHTUSERDATA, TNIL, TNONE, TNUMBER, TOSTRING, TRUE, TSTRING, TTABLE, TTHREAD, TUSERDATA, TVALUE, TYPE_NAMES, UNM, ZERO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal LuaValueGet a value in a table including metatag processing usingLuaValue.INDEX.len()Length operator: return lua length of object(#this)including metatag processing as java intvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidreset()final voidSet a value in a table without metatag processing usingLuaValue.NEWINDEX.voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.luaj.LuaUserdatacheckuserdata, checkuserdata, eq, eq_b, eqmt, equals, getmetatable, hashCode, isuserdata, isuserdata, optuserdata, optuserdata, raweq, raweq, setmetatable, tojstring, touserdata, touserdata, type, typename, userdataMethods inherited from class com.prineside.luaj.LuaValueadd, add, add, and, arg, arg1, argerror, assert_, buffer, call, call, call, call, call, cBool, cDouble, cFloat, checkboolean, checkclosure, checkdouble, checkfunction, checkglobals, checkint, checkjstring, checklong, checknotnil, checknumber, checknumber, checkstring, checktable, checkthread, cInt, cNcDouble, cNcFloat, cNcInt, cObject, comparemt, concat, concat, concatmt, concatTo, concatTo, concatTo, cRegObject, cVarargs, cVarargs, cVarargs, cVarargs, cVarargs, cVarargs, cVarargs, cVarargs, div, div, div, divInto, eqmtcall, error, get, get, gt, gt, gt, gt_b, gt_b, gt_b, gteq, gteq, gteq, gteq_b, gteq_b, gteq_b, inext, initupvalue1, invoke, invoke, invoke, invoke, invokemethod, invokemethod, invokemethod, invokemethod, isboolean, isclosure, isfunction, isint, isinttype, islong, isnil, isnumber, isRegObject, isstring, istable, isthread, isvalidkey, length, listOf, listOf, load, lt, lt, lt, lt_b, lt_b, lt_b, lteq, lteq, lteq, lteq_b, lteq_b, lteq_b, markAsConst, metatag, method, method, method, method, method, method, mod, mod, mod, modFrom, mul, mul, mul, narg, neg, neq, neq_b, next, not, onInvoke, optboolean, optclosure, optdouble, optfunction, optint, optjstring, optlong, optnumber, optstring, opttable, optthread, optvalue, or, pow, pow, pow, powWith, powWith, presize, raweq, raweq, raweq, rawget, rawget, rawget, rawlen, rawset, rawset, rawset, rawset, rawset, rawset, rawset, rawsetlist, set, set, set, set, set, set, strcmp, strcmp, strongvalue, strvalue, sub, sub, sub, subargs, subFrom, subFrom, tableOf, tableOf, tableOf, tableOf, tableOf, tableOf, tailcallOf, testfor_b, toboolean, tobyte, tochar, todouble, tofloat, toint, tolong, tonumber, toshort, tostring, toString, userdataOf, userdataOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOfMethods inherited from class com.prineside.luaj.Varargsargcheck, checkboolean, checkclosure, checkdouble, checkfunction, checkint, checkjstring, checklong, checknotnil, checknumber, checkstring, checktable, checkthread, checkuserdata, checkuserdata, checkvalue, dealias, eval, isfunction, isnil, isnoneornil, isnumber, isstring, istable, isTailcall, isthread, isuserdata, isvalue, optboolean, optclosure, optdouble, optfunction, optint, optjstring, optlong, optnumber, optstring, opttable, optthread, optuserdata, optuserdata, optvalue, toboolean, tobyte, tochar, todouble, tofloat, toint, tojstring, tolong, toshort, touserdata, touserdata, type
- 
Constructor Details- 
JavaInstance
 
- 
- 
Method Details- 
writepublic void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
- writein interface- com.esotericsoftware.kryo.KryoSerializable
- Overrides:
- writein class- LuaUserdata
 
- 
readpublic void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
- readin interface- com.esotericsoftware.kryo.KryoSerializable
- Overrides:
- readin class- LuaUserdata
 
- 
lenDescription copied from class:LuaValueLength operator: return lua length of object(#this)including metatag processing as java int
- 
resetpublic void reset()
- 
getDescription copied from class:LuaValueGet a value in a table including metatag processing usingLuaValue.INDEX.- Overrides:
- getin class- LuaUserdata
- Parameters:
- key- the key to look up, must not be- LuaValue.NILor null
- Returns:
- LuaValuefor that key, or- LuaValue.NILif not found and no metatag
- See Also:
 
- 
setDescription copied from class:LuaValueSet a value in a table without metatag processing usingLuaValue.NEWINDEX.- Overrides:
- setin class- LuaUserdata
- Parameters:
- key- the key to use, must not be- LuaValue.NILor null
- value- the value to use, can be- LuaValue.NIL, must not be null
 
 
-