org.mozilla.javascript

Class Interpreter

public class Interpreter extends Object

Method Summary
Objectcompile(CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction)
FunctioncreateFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)
ScriptcreateScriptObject(Object bytecode, Object staticSecurityDomain)
static ObjectrestartContinuation(Continuation c, Context cx, Scriptable scope, Object[] args)

Method Detail

compile

public Object compile(CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction)

createFunctionObject

public Function createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)

createScriptObject

public Script createScriptObject(Object bytecode, Object staticSecurityDomain)

restartContinuation

public static Object restartContinuation(Continuation c, Context cx, Scriptable scope, Object[] args)