org.mozilla.javascript

Class Interpreter

Known Direct Subclasses:
Codegen

public class Interpreter
extends java.lang.Object

Method Summary

Object
compile(CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction)
Function
createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain)
Script
createScriptObject(Object bytecode, Object staticSecurityDomain)
static Object
restartContinuation(Continuation c, Context cx, Scriptable scope, Object[] args)

Method Details

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)