| org.eclipse.jdt.launching.sourcelookup.IJavaSourceLocation
All known Subclasses: org.eclipse.jdt.launching.sourcelookup.ArchiveSourceLocation, org.eclipse.jdt.launching.sourcelookup.DirectorySourceLocation, org.eclipse.jdt.launching.sourcelookup.PackageFragmentRootSourceLocation, org.eclipse.jdt.launching.sourcelookup.JavaProjectSourceLocation,
IJavaSourceLocation | public interface IJavaSourceLocation extends IAdaptable(Code) | | A repository of source code. A source location is capable of retrieving
source elements.
For example, a source location could be a project, zip/archive
file, or a directory in the file system.
This interface is may be implemented by clients.
since: 2.0 |
Method Summary | |
public Object | findSourceElement(String name) Returns an object representing the source code
for a type with the specified name, or null
if none could be found. | public String | getMemento() Returns a memento for this source location from which this
source location can be reconstructed. | public void | initializeFrom(String memento) Initializes this source location from the given memento. |
findSourceElement | public Object findSourceElement(String name) throws CoreException(Code) | | Returns an object representing the source code
for a type with the specified name, or null
if none could be found. The name is
a fully qualified type name, and may contain the '$'
character when referring to inner types. For example,
java.lang.String . The source element
returned is implementation specific - for example, a
resource, a local file, a zip file entry, etc.
Parameters: name - fully qualified name of the type for whichsource is being searched for source element exception: CoreException - if an exception occurs while searchingfor the specified source element |
getMemento | public String getMemento() throws CoreException(Code) | | Returns a memento for this source location from which this
source location can be reconstructed.
a memento for this source location exception: CoreException - if unable to create a memento |
initializeFrom | public void initializeFrom(String memento) throws CoreException(Code) | | Initializes this source location from the given memento.
Parameters: memento - a memento generated by this source location exception: CoreException - if unable to initialize this sourcelocation |
|
|