Package org.jvnet.hudson.test.rhino
Class CallStackFrame
- java.lang.Object
-
- org.jvnet.hudson.test.rhino.CallStackFrame
-
- All Implemented Interfaces:
org.htmlunit.corejs.javascript.debug.DebugFrame
public class CallStackFrame extends Object implements org.htmlunit.corejs.javascript.debug.DebugFrame
Stack frame.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description org.htmlunit.corejs.javascript.debug.DebuggableScriptfnOrScriptThe function being executed.JavaScriptDebuggerownerJavaScriptDebuggerthat this stack frame lives in.
-
Constructor Summary
Constructors Constructor Description CallStackFrame(JavaScriptDebugger owner, org.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedMap<String,Object>getVariables()In-scope variables.voidonDebuggerStatement(org.htmlunit.corejs.javascript.Context cx)voidonEnter(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable activation, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)voidonExceptionThrown(org.htmlunit.corejs.javascript.Context cx, Throwable ex)voidonExit(org.htmlunit.corejs.javascript.Context cx, boolean byThrow, Object resultOrException)voidonLineChange(org.htmlunit.corejs.javascript.Context cx, int lineNumber)StringtoString()Formats this call stack, arguments, and its local variables as a human readable string.
-
-
-
Field Detail
-
owner
public final JavaScriptDebugger owner
JavaScriptDebuggerthat this stack frame lives in.
-
fnOrScript
public final org.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript
The function being executed.
-
-
Constructor Detail
-
CallStackFrame
public CallStackFrame(JavaScriptDebugger owner, org.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript)
-
-
Method Detail
-
onEnter
public void onEnter(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable activation, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)- Specified by:
onEnterin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame
-
onExit
public void onExit(org.htmlunit.corejs.javascript.Context cx, boolean byThrow, Object resultOrException)- Specified by:
onExitin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame
-
onLineChange
public void onLineChange(org.htmlunit.corejs.javascript.Context cx, int lineNumber)- Specified by:
onLineChangein interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame
-
onExceptionThrown
public void onExceptionThrown(org.htmlunit.corejs.javascript.Context cx, Throwable ex)- Specified by:
onExceptionThrownin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame
-
onDebuggerStatement
public void onDebuggerStatement(org.htmlunit.corejs.javascript.Context cx)
- Specified by:
onDebuggerStatementin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame
-
-