Package se.krka.kahlua.vm
Class KahluaUtil
java.lang.Object
se.krka.kahlua.vm.KahluaUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertArgNotNull
(Object object, int int1, String string, String string2) static boolean
static void
static double
fromDouble
(Object object) static Object
getArg
(LuaCallFrame luaCallFrame, int int1, String string) static KahluaTable
getClassMetatables
(Platform platform, KahluaTable kahluaTable) static double
getDoubleArg
(LuaCallFrame luaCallFrame, int int1, String string) static Double
getNumberArg
(LuaCallFrame luaCallFrame, int int1, String string) static Object
getOptionalArg
(LuaCallFrame luaCallFrame, int int1) static Double
getOptionalNumberArg
(LuaCallFrame luaCallFrame, int int1) static String
getOptionalStringArg
(LuaCallFrame luaCallFrame, int int1) static KahluaTable
getOrCreateTable
(Platform platform, KahluaTable kahluaTable, String string) static String
getStringArg
(LuaCallFrame luaCallFrame, int int1, String string) static KahluaThread
getWorkerThread
(Platform platform, KahluaTable kahluaTable) static long
ipow
(long long1, int int1) static boolean
isNegative
(double double1) static int
len
(KahluaTable kahluaTable, int int1, int int2) static LuaClosure
loadByteCodeFromResource
(String string, KahluaTable kahluaTable) static void
static String
numberToString
(Double Double1) static Double
rawTonumber
(Object object) static String
rawTostring
(Object object) static String
rawTostring2
(Object object) static double
round
(double double1) static void
setupLibrary
(KahluaTable kahluaTable, KahluaThread kahluaThread, String string) static void
setWorkerThread
(KahluaTable kahluaTable, KahluaThread kahluaThread) static Boolean
toBoolean
(boolean boolean1) static Double
toDouble
(double double1) static Double
toDouble
(long long1) static Double
static Double
static String
tostring
(Object object, KahluaThread kahluaThread) static String
-
Constructor Details
-
KahluaUtil
public KahluaUtil()
-
-
Method Details
-
fromDouble
-
toDouble
-
toDouble
-
toBoolean
-
boolEval
-
loadByteCodeFromResource
-
luaAssert
-
fail
-
round
public static double round(double double1) -
ipow
public static long ipow(long long1, int int1) -
isNegative
public static boolean isNegative(double double1) -
getClassMetatables
-
getWorkerThread
-
setWorkerThread
-
getOrCreateTable
public static KahluaTable getOrCreateTable(Platform platform, KahluaTable kahluaTable, String string) -
setupLibrary
-
numberToString
-
type
-
tostring
-
tonumber
-
tonumber
-
rawTostring
-
rawTostring2
-
rawTonumber
-
getStringArg
-
getOptionalStringArg
-
getNumberArg
-
getOptionalNumberArg
-
assertArgNotNull
-
getOptionalArg
-
getArg
-
len
-
getDoubleArg
-