Package se.krka.kahlua.luaj.compiler
Class LuaCompiler
java.lang.Object
se.krka.kahlua.luaj.compiler.LuaCompiler
- All Implemented Interfaces:
JavaFunction
public class LuaCompiler extends java.lang.Object implements JavaFunction
-
Field Summary
Fields Modifier and Type Field Description static boolean
rewriteEvents
-
Method Summary
Modifier and Type Method Description int
call(LuaCallFrame callFrame, int nArguments)
static LuaClosure
loadis(java.io.InputStream inputStream, java.lang.String name, KahluaTable environment)
static LuaClosure
loadis(java.io.Reader reader, java.lang.String name, KahluaTable environment)
static int
loadstream(LuaCallFrame callFrame, int nArguments)
static LuaClosure
loadstring(java.lang.String source, java.lang.String name, KahluaTable environment)
static void
register(KahluaTable env)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
rewriteEvents
public static boolean rewriteEvents
-
-
Method Details
-
register
-
call
- Specified by:
call
in interfaceJavaFunction
-
loadstream
-
loadis
public static LuaClosure loadis(java.io.InputStream inputStream, java.lang.String name, KahluaTable environment) throws java.io.IOException- Throws:
java.io.IOException
-
loadis
public static LuaClosure loadis(java.io.Reader reader, java.lang.String name, KahluaTable environment) throws java.io.IOException- Throws:
java.io.IOException
-
loadstring
public static LuaClosure loadstring(java.lang.String source, java.lang.String name, KahluaTable environment) throws java.io.IOException- Throws:
java.io.IOException
-