home *** CD-ROM | disk | FTP | other *** search
- package netscape.jsdebug;
-
- public final class Script {
- private String _url;
- private String _function;
- private int _baseLineNumber;
- private int _lineExtent;
- private int _nativePtr;
-
- public String getURL() {
- return this._url;
- }
-
- public String getFunction() {
- return this._function;
- }
-
- public int getBaseLineNumber() {
- return this._baseLineNumber;
- }
-
- public int getLineExtent() {
- return this._lineExtent;
- }
-
- public boolean isValid() {
- return this._nativePtr != 0;
- }
-
- public native JSPC getClosestPC(int var1);
-
- public String toString() {
- int var1 = this._baseLineNumber + this._lineExtent - 1;
- return this._function == null ? "<Script " + this._url + "[" + this._baseLineNumber + "," + var1 + "]>" : "<Script " + this._url + "#" + this._function + "()[" + this._baseLineNumber + "," + var1 + "]>";
- }
-
- public int hashCode() {
- return this._nativePtr;
- }
-
- public boolean equals(Object var1) {
- return var1 == this;
- }
-
- private synchronized void _setInvalid() {
- this._nativePtr = 0;
- }
- }
-