kd.bos.script.jsengine.debug

## 类 DIM.StackFrame

- java.lang.Object
- - kd.bos.script.jsengine.debug.DIM.StackFrame

- 所有已实现的接口:
    org.mozilla.javascript.debug.DebugFrame
  封闭类:
    DIM

      public static class DIM.StackFrame
      extends java.lang.Object
      implements org.mozilla.javascript.debug.DebugFrame

  Object to represent one stack frame.

- - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `DIM.ContextData` | `contextData()` Returns the ContextData object for the Context.
    `java.lang.String` | `getFunctionName()` Returns the current function name.
    `int` | `getLineNumber()` Returns the current line number.
    `java.lang.String` | `getUrl()` Returns the source URL.
    `void` | `onDebuggerStatement(Context cx)` Called when a 'debugger' statement is executed.
    `void` | `onEnter(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)` Called when the stack frame is entered.
    `void` | `onExceptionThrown(Context cx, java.lang.Throwable exception)` Called when an exception has been thrown.
    `void` | `onExit(Context cx, boolean byThrow, java.lang.Object resultOrException)` Called when the stack frame has been left.
    `void` | `onLineChange(Context cx, int lineno)` Called when the current position has changed.
    `java.lang.Object` | `scope()` Returns the scope object for this frame.
    `DIM.SourceInfo` | `sourceInfo()` Returns the SourceInfo object for the function.
    `java.lang.Object` | `thisObj()` Returns the 'this' object for this frame.

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### onEnter

          public void onEnter(Context cx,
                              org.mozilla.javascript.Scriptable scope,
                              org.mozilla.javascript.Scriptable thisObj,
                              java.lang.Object[] args)

      Called when the stack frame is entered.
      指定者:
        `onEnter` 在接口中 `org.mozilla.javascript.debug.DebugFrame`

    - #### onLineChange

          public void onLineChange(Context cx,
                                   int lineno)

      Called when the current position has changed.
      指定者:
        `onLineChange` 在接口中 `org.mozilla.javascript.debug.DebugFrame`

    - #### onExceptionThrown

          public void onExceptionThrown(Context cx,
                                        java.lang.Throwable exception)

      Called when an exception has been thrown.
      指定者:
        `onExceptionThrown` 在接口中 `org.mozilla.javascript.debug.DebugFrame`

    - #### onExit

          public void onExit(Context cx,
                             boolean byThrow,
                             java.lang.Object resultOrException)

      Called when the stack frame has been left.
      指定者:
        `onExit` 在接口中 `org.mozilla.javascript.debug.DebugFrame`

    - #### onDebuggerStatement

          public void onDebuggerStatement(Context cx)

      Called when a 'debugger' statement is executed.
      指定者:
        `onDebuggerStatement` 在接口中 `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 java.lang.Object scope()

      Returns the scope object for this frame.

    - #### thisObj

          public java.lang.Object thisObj()

      Returns the 'this' object for this frame.

    - #### getUrl

          public java.lang.String getUrl()

      Returns the source URL.

    - #### getLineNumber

          public int getLineNumber()

      Returns the current line number.

    - #### getFunctionName

          public java.lang.String getFunctionName()

      Returns the current function name.