public class ScribuntoLuaEngine extends ScribuntoEngineBase implements MwInterface
MwInterface.DefaultFunctionlogger, model, UTF8| Constructor and Description |
|---|
ScribuntoLuaEngine(IWikiModel model,
CompiledScriptCache cache) |
ScribuntoLuaEngine(IWikiModel model,
CompiledScriptCache cache,
boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
executeFunctionChunk(org.luaj.vm2.LuaValue luaFunction,
Frame frame) |
ScribuntoModule |
fetchModuleFromParser(String moduleName)
Load a module from some parser-defined template loading mechanism and
register a parser output dependency.
|
protected org.luaj.vm2.Globals |
getGlobals() |
org.luaj.vm2.LuaTable |
getInterface() |
org.luaj.vm2.LuaValue |
getSetupOptions() |
protected org.luaj.vm2.LuaValue |
loadFunction(String functionName,
org.luaj.vm2.Prototype prototype,
Frame frame) |
String |
name() |
static org.luaj.vm2.LuaString |
toLuaString(String string)
Use Java's UTF-8 decoding instead of luaj's broken implementation,
since it does not handle surrogates properly.
|
getRawWikiContent, getRawWikiContentStream, pageNameForModulepublic ScribuntoLuaEngine(IWikiModel model, CompiledScriptCache cache)
public ScribuntoLuaEngine(IWikiModel model, CompiledScriptCache cache, boolean debug)
public ScribuntoModule fetchModuleFromParser(String moduleName) throws ScribuntoException
ScribuntoEnginefetchModuleFromParser in interface ScribuntoEnginemoduleName - The name of the moduleScribuntoException - if the module could not be loadedpublic String name()
name in interface MwInterfaceprotected org.luaj.vm2.Globals getGlobals()
protected org.luaj.vm2.LuaValue loadFunction(String functionName, org.luaj.vm2.Prototype prototype, Frame frame) throws ScribuntoException
ScribuntoExceptionprotected String executeFunctionChunk(org.luaj.vm2.LuaValue luaFunction, Frame frame)
public org.luaj.vm2.LuaTable getInterface()
getInterface in interface MwInterfacepublic org.luaj.vm2.LuaValue getSetupOptions()
getSetupOptions in interface MwInterfacepublic static org.luaj.vm2.LuaString toLuaString(String string)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.