|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.luaj.vm2.server.DefaultLauncher
public class DefaultLauncher
Default Launcher
instance that creates standard globals
and runs the supplied scripts with chunk name 'main'.
Arguments are coerced into lua using CoerceJavaToLua.coerce(Object)
.
Return values with simple types are coerced into Java simple types. Tables, threads, and functions are returned as lua objects.
Launcher
,
LuajClassLoader
,
LuajClassLoader.NewLauncher()
,
LuajClassLoader.NewLauncher(Class)
Field Summary | |
---|---|
protected Globals |
g
|
Constructor Summary | |
---|---|
DefaultLauncher()
|
Method Summary | |
---|---|
java.lang.Object[] |
launch(java.io.InputStream script,
java.lang.Object[] arg)
Launches the script with chunk name 'main' and loading using modes 'bt' |
java.lang.Object[] |
launch(java.io.Reader script,
java.lang.Object[] arg)
Launches the script with chunk name 'main' |
java.lang.Object[] |
launch(java.lang.String script,
java.lang.Object[] arg)
Launches the script with chunk name 'main' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Globals g
Constructor Detail |
---|
public DefaultLauncher()
Method Detail |
---|
public java.lang.Object[] launch(java.lang.String script, java.lang.Object[] arg)
launch
in interface Launcher
script
- The script contents.arg
- Optional arguments supplied to the script.
public java.lang.Object[] launch(java.io.InputStream script, java.lang.Object[] arg)
launch
in interface Launcher
script
- The script as an InputStream.arg
- Optional arguments supplied to the script.
public java.lang.Object[] launch(java.io.Reader script, java.lang.Object[] arg)
launch
in interface Launcher
script
- The script as a Reader.arg
- Optional arguments supplied to the script.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |