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

Quick Search    Search Deep

netscape.jsdebug
Class JSSourceTextProvider  view JSSourceTextProvider download JSSourceTextProvider.java

java.lang.Object
  extended bynetscape.jsdebug.SourceTextProvider
      extended bynetscape.jsdebug.JSSourceTextProvider

public final class JSSourceTextProvider
extends SourceTextProvider

This class provides access to SourceText items.

This class is meant to be a singleton and has a private constructor. Call the static getSourceTextProvider() to get this object.

Note that all functions use netscape.security.PrivilegeManager to verify that the caller has the "Debugger" privilege. The exception netscape.security.ForbiddenTargetException will be throw if this is not enabled.

Since:
1.0
Version:
1.0

Field Summary
private  long _nativeContext
           
private static SourceTextProvider _sourceTextProvider
           
private  Vector _sourceTextVector
           
 
Constructor Summary
private JSSourceTextProvider(long nativeContext)
           
 
Method Summary
 SourceTextItem findSourceTextItem(java.lang.String url)
          Get the SourceText item for the given URL
private  SourceTextItem findSourceTextItem0(java.lang.String url)
           
static SourceTextProvider getSourceTextProvider()
          Get the SourceTextProvider object for the current VM.
 Vector getSourceTextVector()
          Return the vector of SourceTextItems.
 SourceTextItem loadSourceTextItem(java.lang.String url)
          Load the SourceText item for the given URL
private  SourceTextItem loadSourceTextItem0(java.lang.String url)
           
 void refreshSourceTextVector()
          Refresh the vector to reflect any changes made in the underlying native system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sourceTextProvider

private static SourceTextProvider _sourceTextProvider

_sourceTextVector

private Vector _sourceTextVector

_nativeContext

private long _nativeContext
Constructor Detail

JSSourceTextProvider

private JSSourceTextProvider(long nativeContext)
Method Detail

getSourceTextProvider

public static SourceTextProvider getSourceTextProvider()
                                                throws ForbiddenTargetException
Get the SourceTextProvider object for the current VM.


findSourceTextItem

public SourceTextItem findSourceTextItem(java.lang.String url)
                                  throws ForbiddenTargetException
Get the SourceText item for the given URL

Specified by:
findSourceTextItem in class SourceTextProvider

findSourceTextItem0

private SourceTextItem findSourceTextItem0(java.lang.String url)

getSourceTextVector

public Vector getSourceTextVector()
                           throws ForbiddenTargetException
Return the vector of SourceTextItems.

This is NOT a copy. nor is it necessarily current

Specified by:
getSourceTextVector in class SourceTextProvider

loadSourceTextItem

public SourceTextItem loadSourceTextItem(java.lang.String url)
                                  throws ForbiddenTargetException
Load the SourceText item for the given URL

This is not guaranteed to be implemented

Specified by:
loadSourceTextItem in class SourceTextProvider

loadSourceTextItem0

private SourceTextItem loadSourceTextItem0(java.lang.String url)

refreshSourceTextVector

public void refreshSourceTextVector()
Refresh the vector to reflect any changes made in the underlying native system

Specified by:
refreshSourceTextVector in class SourceTextProvider