public class

SourceManager

extends Object
java.lang.Object
   ↳ com.sun.tools.example.debug.gui.SourceManager

Class Overview

Manage the list of source files. Origin of SourceListener events.

Summary

Public Constructors
SourceManager(Environment env)
SourceManager(Environment env, SearchPath sourcePath)
Public Methods
void addSourceListener(SourceListener l)
SearchPath getSourcePath()
Get path for access to source code.
void removeSourceListener(SourceListener l)
void setSourcePath(SearchPath sp)
Set path for access to source code.
SourceModel sourceForClass(ReferenceType refType)
Get source object associated with a class or interface.
SourceModel sourceForFile(File path)
Get source object associated with an absolute file path.
SourceModel sourceForLocation(Location loc)
Get source object associated with a Location.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SourceManager (Environment env)

public SourceManager (Environment env, SearchPath sourcePath)

Public Methods

public void addSourceListener (SourceListener l)

public SearchPath getSourcePath ()

Get path for access to source code.

public void removeSourceListener (SourceListener l)

public void setSourcePath (SearchPath sp)

Set path for access to source code.

public SourceModel sourceForClass (ReferenceType refType)

Get source object associated with a class or interface. Returns null if not available.

public SourceModel sourceForFile (File path)

Get source object associated with an absolute file path.

public SourceModel sourceForLocation (Location loc)

Get source object associated with a Location.