java.lang.Object
netscape.jsdebug.SourceLocation
netscape.jsdebug.JSSourceLocation
- public class JSSourceLocation
- extends SourceLocation
JAvaScript specific SourceLocation
- Since:
- 1.0
- Version:
- 1.0
_pc
private JSPC _pc
_line
private int _line
_url
private java.lang.String _url
JSSourceLocation
public JSSourceLocation(JSPC pc,
int line)
getLine
public int getLine()
- Gets the first line number associated with this SourceLocation.
This is the lowest common denominator information that will be
available: some implementations may choose to include more
specific location information in a subclass of SourceLocation.
- Specified by:
getLine in class SourceLocation
getURL
public java.lang.String getURL()
getPC
public PC getPC()
- Get the first PC associated with a given SourceLocation.
This is the place to set a breakpoint at that location.
returns null if there is no code corresponding to that source
location.
- Specified by:
getPC in class SourceLocation
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).