home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / browser / ns405lyc / nav40.z / jsd10.jar / netscape / jsdebug / Script.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-03-24  |  1.2 KB  |  49 lines

  1. package netscape.jsdebug;
  2.  
  3. public final class Script {
  4.    private String _url;
  5.    private String _function;
  6.    private int _baseLineNumber;
  7.    private int _lineExtent;
  8.    private int _nativePtr;
  9.  
  10.    public String getURL() {
  11.       return this._url;
  12.    }
  13.  
  14.    public String getFunction() {
  15.       return this._function;
  16.    }
  17.  
  18.    public int getBaseLineNumber() {
  19.       return this._baseLineNumber;
  20.    }
  21.  
  22.    public int getLineExtent() {
  23.       return this._lineExtent;
  24.    }
  25.  
  26.    public boolean isValid() {
  27.       return this._nativePtr != 0;
  28.    }
  29.  
  30.    public native JSPC getClosestPC(int var1);
  31.  
  32.    public String toString() {
  33.       int var1 = this._baseLineNumber + this._lineExtent - 1;
  34.       return this._function == null ? "<Script " + this._url + "[" + this._baseLineNumber + "," + var1 + "]>" : "<Script " + this._url + "#" + this._function + "()[" + this._baseLineNumber + "," + var1 + "]>";
  35.    }
  36.  
  37.    public int hashCode() {
  38.       return this._nativePtr;
  39.    }
  40.  
  41.    public boolean equals(Object var1) {
  42.       return var1 == this;
  43.    }
  44.  
  45.    private synchronized void _setInvalid() {
  46.       this._nativePtr = 0;
  47.    }
  48. }
  49.