Returns the
IJavaElement
corresponding to the given classpath-relative path, or
null
if no such
IJavaElement
is found. The result is one of an
ICompilationUnit
,
IClassFile
, or
IPackageFragment
.
When looking for a package fragment, there might be several potential matches; only one of them is returned.
For example, the path "java/lang/Object.java", would result in the ICompilationUnit
or IClassFile
corresponding to "java.lang.Object". The path "java/lang" would result in the IPackageFragment
for "java.lang".
@param path the given classpath-relative path
@exception JavaModelException if the given path is null
or absolute
@return the IJavaElement
corresponding to the givenclasspath-relative path, or null
if no such IJavaElement
is found