Class PackageFragmentRootSourceLocation
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.launching.sourcelookup.PackageFragmentRootSourceLocation
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,IJavaSourceLocation
@Deprecated
public class PackageFragmentRootSourceLocation
extends org.eclipse.core.runtime.PlatformObject
implements IJavaSourceLocation
Deprecated.
Locates source elements in a package fragment root. Returns instances of
ICompilationUnit and IClassFile.
This class may be instantiated.
- Since:
- 2.1
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.findSourceElement(String name) Deprecated.Deprecated.Deprecated.inthashCode()Deprecated.voidinitializeFrom(String memento) Deprecated.Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Constructor Details
-
PackageFragmentRootSourceLocation
Deprecated.Creates an empty source location. -
PackageFragmentRootSourceLocation
Deprecated.Creates a source location on the given package fragment root.- Parameters:
root- package fragment root
-
-
Method Details
-
findSourceElement
@Deprecated public Object findSourceElement(String name) throws org.eclipse.core.runtime.CoreException Deprecated.Description copied from interface:IJavaSourceLocationReturns an object representing the source code for a type with the specified name, ornullif 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.- Specified by:
findSourceElementin interfaceIJavaSourceLocation- Parameters:
name- fully qualified name of the type for which source is being searched for- Returns:
- source element
- Throws:
org.eclipse.core.runtime.CoreException- if an exception occurs while searching for the specified source element
-
getMemento
Deprecated.Description copied from interface:IJavaSourceLocationReturns a memento for this source location from which this source location can be reconstructed.- Specified by:
getMementoin interfaceIJavaSourceLocation- Returns:
- a memento for this source location
- Throws:
org.eclipse.core.runtime.CoreException- if unable to create a memento
-
initializeFrom
@Deprecated public void initializeFrom(String memento) throws org.eclipse.core.runtime.CoreException Deprecated.Description copied from interface:IJavaSourceLocationInitializes this source location from the given memento.- Specified by:
initializeFromin interfaceIJavaSourceLocation- Parameters:
memento- a memento generated by this source location- Throws:
org.eclipse.core.runtime.CoreException- if unable to initialize this source location
-
getPackageFragmentRoot
Deprecated.Returns the package fragment root associated with this source location, ornullif none- Returns:
- the package fragment root associated with this
source location, or
nullif none
-
equals
Deprecated. -
hashCode
Deprecated.
-
org.eclipse.debug.core.sourcelookupandorg.eclipse.debug.core.sourcelookup.containers. This class has been replaced byorg.eclipse.jdt.launching.sourcelookup.containers.PackageFragmentRootSourceContainer.