Package se.krka.kahlua.stdlib
Class BaseLib
java.lang.Object
se.krka.kahlua.stdlib.BaseLib
- All Implemented Interfaces:
JavaFunction
public final class BaseLib extends java.lang.Object implements JavaFunction
-
Constructor Summary
Constructors Constructor Description BaseLib(int index)
-
Method Summary
Modifier and Type Method Description int
call(LuaCallFrame callFrame, int nArguments)
static int
collectgarbage(LuaCallFrame callFrame, int nArguments)
static boolean
luaEquals(java.lang.Object a, java.lang.Object b)
static int
pcall(LuaCallFrame callFrame, int nArguments)
static void
register(KahluaTable environment)
static void
setmetatable(KahluaThread thread, java.lang.Object o, KahluaTable newMeta, boolean raw)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
BaseLib
public BaseLib(int index)
-
-
Method Details
-
register
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
call
- Specified by:
call
in interfaceJavaFunction
-
pcall
-
setmetatable
public static void setmetatable(KahluaThread thread, java.lang.Object o, KahluaTable newMeta, boolean raw) -
collectgarbage
-
luaEquals
public static boolean luaEquals(java.lang.Object a, java.lang.Object b)
-