Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

netscape.jsdebug
Class JSSourceLocation  view JSSourceLocation download JSSourceLocation.java

java.lang.Object
  extended bynetscape.jsdebug.SourceLocation
      extended bynetscape.jsdebug.JSSourceLocation

public class JSSourceLocation
extends SourceLocation

JAvaScript specific SourceLocation

Since:
1.0
Version:
1.0

Field Summary
private  int _line
           
private  JSPC _pc
           
private  java.lang.String _url
           
 
Constructor Summary
JSSourceLocation(JSPC pc, int line)
           
 
Method Summary
 int getLine()
          Gets the first line number associated with this SourceLocation.
 PC getPC()
          Get the first PC associated with a given SourceLocation.
 java.lang.String getURL()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_pc

private JSPC _pc

_line

private int _line

_url

private java.lang.String _url
Constructor Detail

JSSourceLocation

public JSSourceLocation(JSPC pc,
                        int line)
Method Detail

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()).