org.mozilla.javascript
Class Interpreter

java.lang.Object
  |
  +--org.mozilla.javascript.LabelTable
        |
        +--org.mozilla.javascript.Interpreter
Direct Known Subclasses:
Codegen

public class Interpreter
extends LabelTable


Field Summary
static boolean printICode
           
 
Constructor Summary
Interpreter()
           
 
Method Summary
 java.lang.Object compile(Context cx, Scriptable scope, Node tree, java.lang.Object securityDomain, SecuritySupport securitySupport, ClassNameHelper nameHelper)
           
 IRFactory createIRFactory(TokenStream ts, ClassNameHelper nameHelper, Scriptable scope)
           
static java.lang.Object interpret(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args, NativeFunction fnOrScript, org.mozilla.javascript.InterpreterData theData)
           
 Node transform(Node tree, TokenStream ts, Scriptable scope)
           
 
Methods inherited from class org.mozilla.javascript.LabelTable
acquireLabel, markLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printICode

public static final boolean printICode
Constructor Detail

Interpreter

public Interpreter()
Method Detail

createIRFactory

public IRFactory createIRFactory(TokenStream ts,
                                 ClassNameHelper nameHelper,
                                 Scriptable scope)

transform

public Node transform(Node tree,
                      TokenStream ts,
                      Scriptable scope)

compile

public java.lang.Object compile(Context cx,
                                Scriptable scope,
                                Node tree,
                                java.lang.Object securityDomain,
                                SecuritySupport securitySupport,
                                ClassNameHelper nameHelper)
                         throws java.io.IOException

interpret

public static java.lang.Object interpret(Context cx,
                                         Scriptable scope,
                                         Scriptable thisObj,
                                         java.lang.Object[] args,
                                         NativeFunction fnOrScript,
                                         org.mozilla.javascript.InterpreterData theData)
                                  throws JavaScriptException