Package com.prineside.luaj
Class LuaTable.NormalEntry
java.lang.Object
com.prineside.luaj.Varargs
com.prineside.luaj.LuaTable.NormalEntry
- All Implemented Interfaces:
 LuaTable.Slot
- Enclosing class:
 - LuaTable
 
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.luaj.Varargs
Varargs.ArrayVarargs - 
Method Summary
Modifier and TypeMethodDescriptionfinal LuaTable.Slotadd(LuaTable.Slot entry) Link the given new entry to this slot.final LuaValuearg(int i) Get the n-th argument value (1-based).final LuaValuearg1()Get the first argument in the list.intarraykey(int max) Return first entry's key, iff it is an integer between 1 and max, inclusive, or zero otherwise.final com.prineside.luaj.LuaTable.StrongSlotCompare given key with first()'s key; return first() if equal.final com.prineside.luaj.LuaTable.StrongSlotfirst()Return first Entry, if still present, or null.key()booleanCompare given key with first()'s key; return true if equal.intkeyindex(int hashMask) Return hash{pow2,mod}( first().key().hashCode(), sizeMask )final intnarg()Get the number of arguments, or 0 if there are none.final LuaTable.Slotrelink(LuaTable.Slot rest) Return a Slot with the same first key and value (if still present) and rest() equal to rest.final LuaTable.Slotremove(com.prineside.luaj.LuaTable.StrongSlot target) Return a Slot with the given value set to nil; must not return null for next() to behave correctly.final LuaTable.Slotrest()Return rest of elementsfinal LuaTable.SlotSet the value of this Slot's first Entry, if possible, or return a new Slot whose first entry has the given value.com.prineside.luaj.LuaTable.Entryfinal Varargssubargs(int start) Create aVarargsinstance containing arguments starting at indexstartSubclasses should redefine as "return this;" whenever possible.value()Methods inherited from class com.prineside.luaj.Varargs
argcheck, checkboolean, checkclosure, checkdouble, checkfunction, checkint, checkjstring, checklong, checknotnil, checknumber, checkstring, checktable, checkuserdata, checkuserdata, checkvalue, dealias, eval, isfunction, isnil, isnoneornil, isnumber, isstring, istable, isTailcall, isuserdata, isvalue, optboolean, optclosure, optdouble, optfunction, optint, optjstring, optlong, optnumber, optstring, opttable, optuserdata, optuserdata, optvalue, toboolean, tobyte, tochar, todouble, tofloat, toint, tojstring, tojstring, tolong, toshort, toString, touserdata, touserdata, type 
- 
Method Details
- 
key
 - 
value
 - 
set
 - 
toVarargs
Subclasses should redefine as "return this;" whenever possible. - 
keyindex
public int keyindex(int hashMask) Description copied from interface:LuaTable.SlotReturn hash{pow2,mod}( first().key().hashCode(), sizeMask )- Specified by:
 keyindexin interfaceLuaTable.Slot
 - 
keyeq
Description copied from interface:LuaTable.SlotCompare given key with first()'s key; return true if equal. May return true for keys no longer present in the table.- Specified by:
 keyeqin interfaceLuaTable.Slot
 - 
arraykey
public int arraykey(int max) Description copied from interface:LuaTable.SlotReturn first entry's key, iff it is an integer between 1 and max, inclusive, or zero otherwise.- Specified by:
 arraykeyin interfaceLuaTable.Slot
 - 
arg
Description copied from class:VarargsGet the n-th argument value (1-based). - 
narg
public final int narg()Description copied from class:VarargsGet the number of arguments, or 0 if there are none. - 
arg1
Description copied from class:VarargsGet the first argument in the list. - 
subargs
Description copied from class:VarargsCreate aVarargsinstance containing arguments starting at indexstart - 
first
public final com.prineside.luaj.LuaTable.StrongSlot first()Description copied from interface:LuaTable.SlotReturn first Entry, if still present, or null.- Specified by:
 firstin interfaceLuaTable.Slot
 - 
rest
Description copied from interface:LuaTable.SlotReturn rest of elements- Specified by:
 restin interfaceLuaTable.Slot
 - 
find
Description copied from interface:LuaTable.SlotCompare given key with first()'s key; return first() if equal.- Specified by:
 findin interfaceLuaTable.Slot
 - 
set
Description copied from interface:LuaTable.SlotSet the value of this Slot's first Entry, if possible, or return a new Slot whose first entry has the given value.- Specified by:
 setin interfaceLuaTable.Slot
 - 
add
Description copied from interface:LuaTable.SlotLink the given new entry to this slot.- Specified by:
 addin interfaceLuaTable.Slot
 - 
remove
Description copied from interface:LuaTable.SlotReturn a Slot with the given value set to nil; must not return null for next() to behave correctly.- Specified by:
 removein interfaceLuaTable.Slot
 - 
relink
Description copied from interface:LuaTable.SlotReturn a Slot with the same first key and value (if still present) and rest() equal to rest.- Specified by:
 relinkin interfaceLuaTable.Slot
 
 -