java.lang.Object
org.mozilla.javascript.tools.debugger.Dim.StackFrame
- All Implemented Interfaces:
org.mozilla.javascript.debug.DebugFrame
- Enclosing class:
Dim
public static class Dim.StackFrame
extends Object
implements org.mozilla.javascript.debug.DebugFrame
Object to represent one stack frame.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ContextData object for the Context.Returns the current function name.intReturns the current line number.getUrl()Returns the source URL.voidonDebuggerStatement(org.mozilla.javascript.Context cx) Called when a 'debugger' statement is executed.voidonEnter(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args) Called when the stack frame is entered.voidonExceptionThrown(org.mozilla.javascript.Context cx, Throwable exception) Called when an exception has been thrown.voidCalled when the stack frame has been left.voidonLineChange(org.mozilla.javascript.Context cx, int lineno) Called when the current position has changed.scope()Returns the scope object for this frame.Returns the SourceInfo object for the function.thisObj()Returns the 'this' object for this frame.
-
Method Details
-
onEnter
public void onEnter(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args) Called when the stack frame is entered.- Specified by:
onEnterin interfaceorg.mozilla.javascript.debug.DebugFrame
-
onLineChange
public void onLineChange(org.mozilla.javascript.Context cx, int lineno) Called when the current position has changed.- Specified by:
onLineChangein interfaceorg.mozilla.javascript.debug.DebugFrame
-
onExceptionThrown
Called when an exception has been thrown.- Specified by:
onExceptionThrownin interfaceorg.mozilla.javascript.debug.DebugFrame
-
onExit
Called when the stack frame has been left.- Specified by:
onExitin interfaceorg.mozilla.javascript.debug.DebugFrame
-
onDebuggerStatement
public void onDebuggerStatement(org.mozilla.javascript.Context cx) Called when a 'debugger' statement is executed.- Specified by:
onDebuggerStatementin interfaceorg.mozilla.javascript.debug.DebugFrame
-
sourceInfo
Returns the SourceInfo object for the function. -
contextData
Returns the ContextData object for the Context. -
scope
Returns the scope object for this frame. -
thisObj
Returns the 'this' object for this frame. -
getUrl
Returns the source URL. -
getLineNumber
public int getLineNumber()Returns the current line number. -
getFunctionName
Returns the current function name.
-