Uses of Class
com.hk.lua.LuaInterpreter
Package | Description |
---|---|
com.hk.lua |
This packages contains a nearly complete
Lua 5.3
interpreter with very strong Java integration capabilities. |
-
Uses of LuaInterpreter in com.hk.lua
Fields in com.hk.lua declared as LuaInterpreter Modifier and Type Field Description LuaInterpreter
Environment. interp
The interpreter this environment is currently running under.protected LuaInterpreter
LuaLibraryReflect.LuaJava. interp
protected LuaInterpreter
LuaLibraryReflect.LuaJava. interp
Methods in com.hk.lua that return LuaInterpreter Modifier and Type Method Description LuaInterpreter
LuaFactory. build()
Build and return a newLuaInterpreter
object containing the given libraries as well as executing the handlers that were added previously.static LuaInterpreter
Lua. interpreter()
Construct aLuaInterpreter
using STDIN as the source.static LuaInterpreter
Lua. interpreter(String source)
Construct aLuaInterpreter
using the specified parameter.static LuaInterpreter
Lua. reader(File file)
Construct aLuaInterpreter
from a file using the file name as the source.static LuaInterpreter
Lua. reader(File file, Charset charset)
Construct aLuaInterpreter
from a file using the file name as the source.static LuaInterpreter
Lua. reader(InputStream input)
Construct aLuaInterpreter
from a stream using the STDIN as the source.static LuaInterpreter
Lua. reader(InputStream input, Charset charset)
Construct aLuaInterpreter
from a stream using the STDIN as the source.static LuaInterpreter
Lua. reader(Reader rdr)
Construct aLuaInterpreter
from a reader using STDIN as the source.static LuaInterpreter
Lua. reader(Reader rdr, String source)
Construct aLuaInterpreter
from a reader using the specified parameter as the source.static LuaInterpreter
Lua. reader(String str)
Construct aLuaInterpreter
from a string using STDIN as the source.static LuaInterpreter
Lua. reader(URL url)
Construct aLuaInterpreter
from a URL as the source for the Lua code.LuaInterpreter
LuaInterpreter. removeExtra(String key)
Remove a certain key from the extra data.LuaInterpreter
LuaInterpreter. setExtra(String key, Object value)
Set the data under a certain key.Methods in com.hk.lua with parameters of type LuaInterpreter Modifier and Type Method Description LuaObject
Lua.LuaMethod. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryBasic. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryHash. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryIO. call(LuaInterpreter interp, LuaObject[] args)
LuaObject
LuaLibraryJson. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryMath. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryOS. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryPackage. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaLibraryReflect. call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectLuaObject
LuaObject. call(LuaInterpreter interp, LuaObject... args)
call.LuaObject
LuaObject. callFunction(LuaInterpreter interp, Object... args)
callFunction.LuaObject
LuaThread. doAdd(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doAdd(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doBAND(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doBAND(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doBNOT(LuaInterpreter interp)
LuaObject
LuaUserdata. doBNOT(LuaInterpreter interp)
LuaObject
LuaThread. doBOR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doBOR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doBXOR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doBXOR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doCall(LuaInterpreter interp, LuaObject[] args)
LuaObject
LuaUserdata. doCall(LuaInterpreter interp, LuaObject[] args)
LuaObject
LuaThread. doConcat(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doConcat(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doDiv(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doDiv(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaLibraryDate.LuaDateUserdata. doEQ(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaUserdata. doEQ(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doIDiv(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doIDiv(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doIndex(LuaInterpreter interp, LuaObject key)
LuaObject
LuaUserdata. doIndex(LuaInterpreter interp, LuaObject key)
com.hk.lua.LuaBoolean
LuaLibraryDate.LuaDateUserdata. doLE(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaThread. doLE(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaUserdata. doLE(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doLen(LuaInterpreter interp)
LuaObject
LuaUserdata. doLen(LuaInterpreter interp)
com.hk.lua.LuaBoolean
LuaLibraryDate.LuaDateUserdata. doLT(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaThread. doLT(LuaInterpreter interp, LuaObject o)
com.hk.lua.LuaBoolean
LuaUserdata. doLT(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doMod(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doMod(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doMul(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doMul(LuaInterpreter interp, LuaObject o)
void
LuaThread. doNewIndex(LuaInterpreter interp, LuaObject key, LuaObject value)
void
LuaUserdata. doNewIndex(LuaInterpreter interp, LuaObject key, LuaObject value)
LuaObject
LuaThread. doPow(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doPow(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doSHL(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doSHL(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doSHR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doSHR(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doSub(LuaInterpreter interp, LuaObject o)
LuaObject
LuaUserdata. doSub(LuaInterpreter interp, LuaObject o)
LuaObject
LuaThread. doUnm(LuaInterpreter interp)
LuaObject
LuaUserdata. doUnm(LuaInterpreter interp)
LuaObject
LuaObject. getIndex(LuaInterpreter interp, long key)
getIndex.LuaObject
LuaObject. getIndex(LuaInterpreter interp, LuaObject key)
getIndex.LuaObject
LuaObject. getIndex(LuaInterpreter interp, String key)
getIndex.String
LuaLibraryDate.LuaDateUserdata. getString(LuaInterpreter interp)
String
LuaLibraryIO.LuaIOUserdata. getString(LuaInterpreter interp)
abstract String
LuaObject. getString(LuaInterpreter interp)
Get the string value of this Lua object.String
LuaThread. getString(LuaInterpreter interp)
Get the string value of this Lua object.String
LuaUserdata. getString(LuaInterpreter interp)
Get the string value of this Lua object.static void
Lua. importStandard(LuaInterpreter interp)
Import the standardLua 5.3
libraries as well as three additional libraries regarding hashing, JSON, and dates.static void
LuaLibrary. importStandard(LuaInterpreter interp)
Deprecated.void
LuaObject. setIndex(LuaInterpreter interp, long key, LuaObject value)
setIndex.void
LuaObject. setIndex(LuaInterpreter interp, long key, Object value)
setIndex.void
LuaObject. setIndex(LuaInterpreter interp, LuaObject key, LuaObject value)
setIndex.void
LuaObject. setIndex(LuaInterpreter interp, LuaObject key, Object value)
setIndex.void
LuaObject. setIndex(LuaInterpreter interp, String key, LuaObject value)
setIndex.void
LuaObject. setIndex(LuaInterpreter interp, String key, Object value)
setIndex.Method parameters in com.hk.lua with type arguments of type LuaInterpreter Modifier and Type Method Description void
LuaFactory. addHandler(Consumer<LuaInterpreter> handler)
Handlers are called on each interpreter built before they are returned.void
LuaFactory. removeHandler(Consumer<LuaInterpreter> handler)
Remove a handler from this factory.