public interface ITypeReference
Modifier and Type | Method and Description |
---|---|
ICElement[] |
getCElements()
Returns the CElements located at the stored offset and length,
or
null if not found. |
int |
getLength()
Returns the length.
|
org.eclipse.core.runtime.IPath |
getLocation()
Returns the absolute path in the local file system
to this reference, or null if no path can be
determined.
|
int |
getOffset()
Returns the offset.
|
org.eclipse.core.runtime.IPath |
getPath()
Returns the full, absolute path of this reference
relative to the workspace, or null if no path can be
determined.
|
org.eclipse.core.resources.IProject |
getProject()
Returns the project.
|
org.eclipse.core.runtime.IPath |
getRelativeIncludePath(org.eclipse.core.resources.IProject project)
Gets the path for this location, relative to one of
the given project's include paths.
|
org.eclipse.core.runtime.IPath |
getRelativePath(org.eclipse.core.runtime.IPath relativeToPath)
Gets the path for this location, relative to the
given path.
|
org.eclipse.core.resources.IResource |
getResource()
Returns the resource.
|
ITranslationUnit |
getTranslationUnit()
Returns a translation unit for this location.
|
IWorkingCopy |
getWorkingCopy()
Returns the working copy.
|
boolean |
isLineNumber() |
org.eclipse.core.runtime.IPath getPath()
org.eclipse.core.runtime.IPath getLocation()
org.eclipse.core.resources.IResource getResource()
IWorkingCopy getWorkingCopy()
org.eclipse.core.resources.IProject getProject()
int getOffset()
int getLength()
ICElement[] getCElements()
null
if not found.ITranslationUnit getTranslationUnit()
org.eclipse.core.runtime.IPath getRelativeIncludePath(org.eclipse.core.resources.IProject project)
project
- the project to use as a reference.org.eclipse.core.runtime.IPath getRelativePath(org.eclipse.core.runtime.IPath relativeToPath)
relativeToPath
- the path to use as a reference.boolean isLineNumber()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.