| Constructor and Description | 
|---|
| Interpreter() | 
| Modifier and Type | Method and Description | 
|---|---|
| static NativeContinuation | captureContinuation(Context cx) | 
| void | captureStackInfo(RhinoException ex)Capture stack information from the given exception. | 
| java.lang.Object | compile(CompilerEnvirons compilerEnv,
       ScriptNode tree,
       java.lang.String encodedSource,
       boolean returnFunction)Compile the script or function from intermediate representation
 tree into an executable form. | 
| Function | createFunctionObject(Context cx,
                    Scriptable scope,
                    java.lang.Object bytecode,
                    java.lang.Object staticSecurityDomain)Create a function object. | 
| Script | createScriptObject(java.lang.Object bytecode,
                  java.lang.Object staticSecurityDomain)Create a script object. | 
| java.lang.String | getPatchedStack(RhinoException ex,
               java.lang.String nativeStackTrace)Given a native stack trace, patch it with script-specific source
 and line information | 
| java.util.List<java.lang.String> | getScriptStack(RhinoException ex)Get the script stack for the given exception | 
| ScriptStackElement[][] | getScriptStackElements(RhinoException ex) | 
| java.lang.String | getSourcePositionFromStack(Context cx,
                          int[] linep)Get the source position information by examining the stack. | 
| static java.lang.Object | restartContinuation(NativeContinuation c,
                   Context cx,
                   Scriptable scope,
                   java.lang.Object[] args) | 
| static java.lang.Object | resumeGenerator(Context cx,
               Scriptable scope,
               int operation,
               java.lang.Object savedState,
               java.lang.Object value) | 
| void | setEvalScriptFlag(Script script)Mark the given script to indicate it was created by a call to
 eval() or to a Function constructor. | 
public java.lang.Object compile(CompilerEnvirons compilerEnv, ScriptNode tree, java.lang.String encodedSource, boolean returnFunction)
Evaluatorcompile in interface EvaluatorcompilerEnv - Compiler environmenttree - parse treeencodedSource - encoding of the source code for decompilationreturnFunction - if true, compiling a functionpublic Script createScriptObject(java.lang.Object bytecode, java.lang.Object staticSecurityDomain)
EvaluatorcreateScriptObject in interface Evaluatorbytecode - opaque object returned by compilestaticSecurityDomain - security domainpublic void setEvalScriptFlag(Script script)
EvaluatorsetEvalScriptFlag in interface Evaluatorscript - script to mark as from evalpublic Function createFunctionObject(Context cx, Scriptable scope, java.lang.Object bytecode, java.lang.Object staticSecurityDomain)
EvaluatorcreateFunctionObject in interface Evaluatorcx - Current contextscope - scope of the functionbytecode - opaque object returned by compilestaticSecurityDomain - security domainpublic void captureStackInfo(RhinoException ex)
EvaluatorcaptureStackInfo in interface Evaluatorex - an exception thrown during executionpublic java.lang.String getSourcePositionFromStack(Context cx, int[] linep)
EvaluatorgetSourcePositionFromStack in interface Evaluatorcx - Contextlinep - Array object of length >= 1; getSourcePositionFromStack
              will assign the line number to linep[0].public java.lang.String getPatchedStack(RhinoException ex, java.lang.String nativeStackTrace)
EvaluatorgetPatchedStack in interface Evaluatorex - exceptionnativeStackTrace - the native stack tracepublic java.util.List<java.lang.String> getScriptStack(RhinoException ex)
EvaluatorgetScriptStack in interface Evaluatorex - exception from executionpublic ScriptStackElement[][] getScriptStackElements(RhinoException ex)
public static java.lang.Object resumeGenerator(Context cx, Scriptable scope, int operation, java.lang.Object savedState, java.lang.Object value)
public static java.lang.Object restartContinuation(NativeContinuation c, Context cx, Scriptable scope, java.lang.Object[] args)
public static NativeContinuation captureContinuation(Context cx)