public class DefaultLauncher extends Object implements Launcher
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)| 构造器和说明 |
|---|
DefaultLauncher() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object[] |
launch(InputStream script,
Object[] arg)
Launches the script with chunk name 'main' and loading using modes 'bt'
|
Object[] |
launch(Reader script,
Object[] arg)
Launches the script with chunk name 'main'
|
Object[] |
launch(String script,
Object[] arg)
Launches the script with chunk name 'main'
|
Copyright © 2020. All rights reserved.