org.luaj.vm
Class LWeakTable

java.lang.Object
  extended by org.luaj.vm.LValue
      extended by org.luaj.vm.LTable
          extended by org.luaj.vm.LWeakTable

public class LWeakTable
extends LTable


Field Summary
 
Fields inherited from class org.luaj.vm.LTable
array, hashKeys, hashValues
 
Fields inherited from class org.luaj.vm.LValue
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX
 
Constructor Summary
LWeakTable()
           
LWeakTable(int narray, int nhash)
           
LWeakTable(LTable copy)
           
 
Method Summary
 boolean next(LuaState vm, LValue key, boolean indexedonly)
          Leave key,value pair on top, or nil if at end of list.
protected  LValue normalizeGet(java.lang.Object val)
          Check for null, and convert to nilor leave alone
protected  java.lang.Object normalizePut(LValue val)
          Check for nil, and convert to null or leave alone
protected  void rehash()
           
 
Methods inherited from class org.luaj.vm.LTable
arrayExpand, arrayPresize, checkLoadFactor, containsKey, containsKey, foreach, get, get, getArrayCapacity, getHashCapacity, getKeys, hashClearSlot, hashFindSlot, hashGet, hashRemove, hashSet, isTable, luaGetMetatable, luaGetType, luaInsertPos, luaLength, luaMaxN, luaRemovePos, luaSetMetatable, luaSort, put, put, put, put, size, toJavaString
 
Methods inherited from class org.luaj.vm.LValue
compareError, conversionError, id, isClosure, isFunction, isInteger, isNil, isNumber, isString, isUserData, luaAsString, luaBinCmpDouble, luaBinCmpInteger, luaBinCmpString, luaBinCmpUnknown, luaBinOpDouble, luaBinOpInteger, luaBinOpUnknown, luaConcatTo, luaGetEnv, luaGetTable, luaGetTypeName, luaSetEnv, luaSetTable, luaStackCall, luaToNumber, luaUnaryMinus, toJavaBoolean, toJavaBoxedBoolean, toJavaBoxedByte, toJavaBoxedCharacter, toJavaBoxedDouble, toJavaBoxedFloat, toJavaBoxedInteger, toJavaBoxedLong, toJavaBoxedShort, toJavaByte, toJavaChar, toJavaDouble, toJavaFloat, toJavaInstance, toJavaInt, toJavaLong, toJavaShort, toString, toStrongReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LWeakTable

public LWeakTable()

LWeakTable

public LWeakTable(int narray,
                  int nhash)

LWeakTable

public LWeakTable(LTable copy)
Method Detail

normalizeGet

protected LValue normalizeGet(java.lang.Object val)
Description copied from class: LTable
Check for null, and convert to nilor leave alone

Overrides:
normalizeGet in class LTable

normalizePut

protected java.lang.Object normalizePut(LValue val)
Description copied from class: LTable
Check for nil, and convert to null or leave alone

Overrides:
normalizePut in class LTable

next

public boolean next(LuaState vm,
                    LValue key,
                    boolean indexedonly)
Description copied from class: LTable
Leave key,value pair on top, or nil if at end of list.

Overrides:
next in class LTable
Parameters:
vm - the LuaState to leave the values on
indexedonly - TODO
Returns:
true if next exists, false if at end of list

rehash

protected void rehash()
Overrides:
rehash in class LTable


Copyright © 2007-2013 Luaj.org. All Rights Reserved.