public class LuajContext extends SimpleScriptContext implements ScriptContext
| 限定符和类型 | 字段和说明 |
|---|---|
Globals |
globals
Globals for this context instance.
|
engineScope, errorWriter, globalScope, reader, writerENGINE_SCOPE, GLOBAL_SCOPE| 构造器和说明 |
|---|
LuajContext()
Construct a LuajContext with its own globals which may
be debug globals depending on the value of the system
property 'org.luaj.debug'
If the system property 'org.luaj.debug' is set, the globals
created will be a debug globals that includes the debug
library.
|
LuajContext(boolean createDebugGlobals,
boolean useLuaJCCompiler)
Construct a LuajContext with its own globals, which
which optionally are debug globals, and optionally use the
luajc direct lua to java bytecode compiler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setErrorWriter(Writer writer) |
void |
setReader(Reader reader) |
void |
setWriter(Writer writer) |
getAttribute, getAttribute, getAttributesScope, getBindings, getErrorWriter, getReader, getScopes, getWriter, removeAttribute, setAttribute, setBindingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttribute, getAttributesScope, getBindings, getErrorWriter, getReader, getScopes, getWriter, removeAttribute, setAttribute, setBindingspublic final Globals globals
public LuajContext()
If the system property 'org.luaj.debug' is set, the globals created will be a debug globals that includes the debug library. This may provide better stack traces, but may have negative impact on performance.
public LuajContext(boolean createDebugGlobals,
boolean useLuaJCCompiler)
If createDebugGlobals is set, the globals created will be a debug globals that includes the debug library. This may provide better stack traces, but may have negative impact on performance.
createDebugGlobals - true to create debug globals,
false for standard globals.useLuaJCCompiler - true to use the luajc compiler,
reqwuires bcel to be on the class path.public void setErrorWriter(Writer writer)
setErrorWriter 在接口中 ScriptContextsetErrorWriter 在类中 SimpleScriptContextpublic void setReader(Reader reader)
setReader 在接口中 ScriptContextsetReader 在类中 SimpleScriptContextpublic void setWriter(Writer writer)
setWriter 在接口中 ScriptContextsetWriter 在类中 SimpleScriptContextCopyright © 2020. All rights reserved.