Package se.krka.kahlua.vm
Class KahluaUtil
java.lang.Object
se.krka.kahlua.vm.KahluaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertArgNotNull(Object object, int int1, String string, String string2) static booleanstatic voidstatic doublefromDouble(Object object) static ObjectgetArg(LuaCallFrame luaCallFrame, int int1, String string) static KahluaTablegetClassMetatables(Platform platform, KahluaTable kahluaTable) static doublegetDoubleArg(LuaCallFrame luaCallFrame, int int1, String string) static DoublegetNumberArg(LuaCallFrame luaCallFrame, int int1, String string) static ObjectgetOptionalArg(LuaCallFrame luaCallFrame, int int1) static DoublegetOptionalNumberArg(LuaCallFrame luaCallFrame, int int1) static StringgetOptionalStringArg(LuaCallFrame luaCallFrame, int int1) static KahluaTablegetOrCreateTable(Platform platform, KahluaTable kahluaTable, String string) static StringgetStringArg(LuaCallFrame luaCallFrame, int int1, String string) static KahluaThreadgetWorkerThread(Platform platform, KahluaTable kahluaTable) static longipow(long long1, int int1) static booleanisNegative(double double1) static intlen(KahluaTable kahluaTable, int int1, int int2) static LuaClosureloadByteCodeFromResource(String string, KahluaTable kahluaTable) static voidstatic StringnumberToString(Double Double1) static DoublerawTonumber(Object object) static StringrawTostring(Object object) static StringrawTostring2(Object object) static doubleround(double double1) static voidsetupLibrary(KahluaTable kahluaTable, KahluaThread kahluaThread, String string) static voidsetWorkerThread(KahluaTable kahluaTable, KahluaThread kahluaThread) static BooleantoBoolean(boolean boolean1) static DoubletoDouble(double double1) static DoubletoDouble(long long1) static Doublestatic Doublestatic Stringtostring(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
-