|
Eclipse JDT 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.core.runtime.PlatformObject
|
+--org.eclipse.jdt.launching.sourcelookup.PackageFragmentRootSourceLocation
Locates source elements in a package fragment root. Returns
instances of ICompilationUnit and
IClassFile.
This class may be instantiated; it is not intended to be subclassed.
IJavaSourceLocation| Constructor Summary | |
PackageFragmentRootSourceLocation()
Creates an empty source location. |
|
PackageFragmentRootSourceLocation(IPackageFragmentRoot root)
Creates a source location on the given package fragment root. |
|
| Method Summary | |
boolean |
equals(Object object)
|
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. |
String |
getMemento()
Returns a memento for this source location from which this source location can be reconstructed. |
IPackageFragmentRoot |
getPackageFragmentRoot()
Returns the package fragment root associated with this source location, or null if none |
int |
hashCode()
|
void |
initializeFrom(String memento)
Initializes this source location from the given memento. |
| Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Constructor Detail |
public PackageFragmentRootSourceLocation()
public PackageFragmentRootSourceLocation(IPackageFragmentRoot root)
root - package fragment root| Method Detail |
public Object findSourceElement(String name)
throws CoreException
IJavaSourceLocationnull
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.
findSourceElement in interface IJavaSourceLocationname - fully qualified name of the type for which
source is being searched for
CoreException - if an exception occurs while searching
for the specified source elementIJavaSourceLocation.findSourceElement(String)
public String getMemento()
throws CoreException
IJavaSourceLocation
getMemento in interface IJavaSourceLocationCoreException - if unable to create a mementoIJavaSourceLocation.getMemento()
public void initializeFrom(String memento)
throws CoreException
IJavaSourceLocation
initializeFrom in interface IJavaSourceLocationmemento - a memento generated by this source location
CoreException - if unable to initialize this source
locationIJavaSourceLocation.initializeFrom(String)public IPackageFragmentRoot getPackageFragmentRoot()
null if none
null if nonepublic boolean equals(Object object)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
Eclipse JDT 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||