kd.bos.script.jsengine.debug

## 类 DIM.SourceInfo

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

- 封闭类:
    DIM

      public static class DIM.SourceInfo
      extends java.lang.Object

  Class to store information about a script source.

- - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `breakableLine(int line)` Returns whether the given line number can have a breakpoint set on it.
    `boolean` | `breakpoint(int line)` Returns whether there is a breakpoint set on the given line.
    `boolean` | `breakpoint(int line, boolean value)` Sets or clears the breakpoint flag for the given line.
    `int` | `calcMaxBreakpointLine()`
    `DIM.FunctionSource` | `functionSource(int i)` Returns the FunctionSource object with the given index.
    `int` | `functionSourcesTop()` Returns the number of FunctionSource objects stored in this object.
    `int` | `getLine()`
    `boolean` | `hasBreakpoint()`
    `void` | `removeAllBreakpoints()` Removes all breakpoints from the script.
    `java.lang.String` | `source()` Returns the source text.
    `java.lang.String` | `url()` Returns the script's origin URL.

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

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

- - ### 方法详细资料

    - #### source

          public java.lang.String source()

      Returns the source text.

    - #### url

          public java.lang.String url()

      Returns the script's origin URL.

    - #### functionSourcesTop

          public int functionSourcesTop()

      Returns the number of FunctionSource objects stored in this object.

    - #### functionSource

          public DIM.FunctionSource functionSource(int i)

      Returns the FunctionSource object with the given index.

    - #### breakableLine

          public boolean breakableLine(int line)

      Returns whether the given line number can have a breakpoint set on it.

    - #### breakpoint

          public boolean breakpoint(int line)

      Returns whether there is a breakpoint set on the given line.

    - #### breakpoint

          public boolean breakpoint(int line,
                                    boolean value)

      Sets or clears the breakpoint flag for the given line.

    - #### removeAllBreakpoints

          public void removeAllBreakpoints()

      Removes all breakpoints from the script.

    - #### calcMaxBreakpointLine

          public int calcMaxBreakpointLine()

    - #### hasBreakpoint

          public boolean hasBreakpoint()

    - #### getLine

          public int getLine()