Class Dim.StackFrame

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 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:
      onEnter in interface org.mozilla.javascript.debug.DebugFrame
    • onLineChange

      public void onLineChange(org.mozilla.javascript.Context cx, int lineno)
      Called when the current position has changed.
      Specified by:
      onLineChange in interface org.mozilla.javascript.debug.DebugFrame
    • onExceptionThrown

      public void onExceptionThrown(org.mozilla.javascript.Context cx, Throwable exception)
      Called when an exception has been thrown.
      Specified by:
      onExceptionThrown in interface org.mozilla.javascript.debug.DebugFrame
    • onExit

      public void onExit(org.mozilla.javascript.Context cx, boolean byThrow, Object resultOrException)
      Called when the stack frame has been left.
      Specified by:
      onExit in interface org.mozilla.javascript.debug.DebugFrame
    • onDebuggerStatement

      public void onDebuggerStatement(org.mozilla.javascript.Context cx)
      Called when a 'debugger' statement is executed.
      Specified by:
      onDebuggerStatement in interface org.mozilla.javascript.debug.DebugFrame
    • sourceInfo

      public Dim.SourceInfo sourceInfo()
      Returns the SourceInfo object for the function.
    • contextData

      public Dim.ContextData contextData()
      Returns the ContextData object for the Context.
    • scope

      public Object scope()
      Returns the scope object for this frame.
    • thisObj

      public Object thisObj()
      Returns the 'this' object for this frame.
    • getUrl

      public String getUrl()
      Returns the source URL.
    • getLineNumber

      public int getLineNumber()
      Returns the current line number.
    • getFunctionName

      public String getFunctionName()
      Returns the current function name.