Package se.krka.kahlua.stdlib
Class TableLib
java.lang.Object
se.krka.kahlua.stdlib.TableLib
- All Implemented Interfaces:
JavaFunction
public final class TableLib extends java.lang.Object implements JavaFunction
-
Constructor Summary
Constructors Constructor Description TableLib(int index)
-
Method Summary
Modifier and Type Method Description static void
append(KahluaThread state, KahluaTable table, java.lang.Object element)
int
call(LuaCallFrame callFrame, int nArguments)
static void
insert(KahluaThread state, KahluaTable table, int position, java.lang.Object element)
static void
insert(KahluaThread state, KahluaTable table, java.lang.Object element)
static void
rawappend(KahluaTable table, java.lang.Object element)
static void
rawinsert(KahluaTable table, int position, java.lang.Object element)
static void
register(Platform platform, KahluaTable environment)
static java.lang.Object
remove(KahluaThread state, KahluaTable table)
static java.lang.Object
remove(KahluaThread thread, KahluaTable table, int position)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TableLib
public TableLib(int index)
-
-
Method Details
-
register
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
call
- Specified by:
call
in interfaceJavaFunction
-
insert
-
append
-
rawappend
-
insert
public static void insert(KahluaThread state, KahluaTable table, int position, java.lang.Object element) -
rawinsert
-
remove
-
remove
-