public class JavaModule extends Object
Modifier and Type | Method and Description |
---|---|
static JavaModule |
getInstance()
Returns the instance of the Java module.
|
void |
open(LuaState luaState)
Opens this module in a Lua state.
|
TypedJavaObject |
toTable(List<?> list)
Returns a table-like Lua value for the specified list.
|
TypedJavaObject |
toTable(Map<?,?> map)
Returns a table-like Lua value for the specified map.
|
public static JavaModule getInstance()
public void open(LuaState luaState)
LuaState.openLibs()
or by
LuaState.openLib(com.naef.jnlua.LuaState.Library)
if
LuaState.Library.JAVA
is passed.luaState
- the Lua state to open inpublic TypedJavaObject toTable(Map<?,?> map)
totable()
function
provided by this Java module.map
- the mappublic TypedJavaObject toTable(List<?> list)
totable()
function
provided by this Java module.list
- the list