public final class CLibraryFileEntry extends ACPathEntry implements ICLibraryFileEntry
ALL, BUILTIN, EXPORTED, FRAMEWORKS_MAC, INCLUDE_FILE, INCLUDE_PATH, LIBRARY_FILE, LIBRARY_PATH, LOCAL, MACRO, MACRO_FILE, NONE, OUTPUT_PATH, READONLY, RESOLVED, SOURCE_PATH, UNDEFINED, VALUE_WORKSPACE_PATH| Constructor and Description |
|---|
CLibraryFileEntry(org.eclipse.core.resources.IFile rc,
int flags)
This constructor is discouraged to be used directly.
|
CLibraryFileEntry(org.eclipse.core.resources.IFile rc,
int flags,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping) |
CLibraryFileEntry(org.eclipse.core.runtime.IPath location,
int flags)
This constructor is discouraged to be used directly.
|
CLibraryFileEntry(org.eclipse.core.runtime.IPath location,
int flags,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping) |
CLibraryFileEntry(String name,
int flags)
This constructor is discouraged to be referenced by clients.
|
CLibraryFileEntry(String name,
int flags,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
contentsToString() |
boolean |
equals(Object other) |
boolean |
equalsByContents(ICSettingEntry entry) |
int |
getKind() |
org.eclipse.core.runtime.IPath |
getSourceAttachmentPath()
Returns the path to the source archive or folder associated with this
C path entry, or
null if this C path entry has no
source attachment. |
org.eclipse.core.runtime.IPath |
getSourceAttachmentPrefixMapping()
Returns the path to map the source paths with to the source achive or folder
An empty path indicates that the is a one-to-one mapping of source paths to the
source achive or folder path.
|
org.eclipse.core.runtime.IPath |
getSourceAttachmentRootPath()
Returns the path within the source archive or folder where source
are located.
|
int |
hashCode() |
boolean |
isFile() |
fullPathForLocation, getFullPath, getLocation, isValueWorkspacePathcheckFlags, codeForContentsKey, codeForNameKey, equalsByName, getByNameMatchFlags, getFlags, getName, getValue, isBuiltIn, isReadOnly, isResolved, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFullPath, getLocation, isValueWorkspacePathequalsByName, getFlags, getName, getValue, isBuiltIn, isReadOnly, isResolvedpublic CLibraryFileEntry(String name, int flags)
name - - library file path. The path can be an absolute location on the local file-system
or with flag ICSettingEntry.VALUE_WORKSPACE_PATH it is treated as workspace full path.flags - - bitwise combination of ICSettingEntry flags.public CLibraryFileEntry(org.eclipse.core.runtime.IPath location,
int flags)
location - - library file path. The path can be an absolute location on the local
file-system or with flag ICSettingEntry.VALUE_WORKSPACE_PATH it is treated as workspace full path.flags - - bitwise combination of ICSettingEntry flags.public CLibraryFileEntry(org.eclipse.core.resources.IFile rc,
int flags)
rc - - library file as a resource in the workspace.flags - - bitwise combination of ICSettingEntry flags.
If ICSettingEntry.VALUE_WORKSPACE_PATH is missing it will be supplied.public CLibraryFileEntry(String name, int flags, org.eclipse.core.runtime.IPath sourceAttachmentPath, org.eclipse.core.runtime.IPath sourceAttachmentRootPath, org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping)
public CLibraryFileEntry(org.eclipse.core.runtime.IPath location,
int flags,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping)
public CLibraryFileEntry(org.eclipse.core.resources.IFile rc,
int flags,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
org.eclipse.core.runtime.IPath sourceAttachmentPrefixMapping)
public final int getKind()
getKind in interface ICSettingEntrypublic final boolean isFile()
isFile in class ACPathEntrypublic org.eclipse.core.runtime.IPath getSourceAttachmentPath()
ICLibraryFileEntrynull if this C path entry has no
source attachment.
Only library and variable C path entries may have source attachments. For library C path entries, the result path (if present) locates a source archive or folder. This archive or folder can be located in a project of the workspace or outside thr workspace. For variable c path entries, the result path (if present) has an analogous form and meaning as the variable path, namely the first segment is the name of a c path variable.
getSourceAttachmentPath in interface ICLibraryFileEntrynull if nonepublic org.eclipse.core.runtime.IPath getSourceAttachmentPrefixMapping()
ICLibraryFileEntrynull value
if and only if getSourceAttachmentPath returns
a non-null value.getSourceAttachmentPrefixMapping in interface ICLibraryFileEntrynull if
not applicablepublic org.eclipse.core.runtime.IPath getSourceAttachmentRootPath()
ICLibraryFileEntrynull value
if and only if getSourceAttachmentPath returns
a non-null value.getSourceAttachmentRootPath in interface ICLibraryFileEntrynull if
not applicablepublic int hashCode()
hashCode in class ACSettingEntrypublic boolean equals(Object other)
equals in class ACSettingEntrypublic boolean equalsByContents(ICSettingEntry entry)
equalsByContents in interface ICSettingEntryequalsByContents in class ACSettingEntryprotected String contentsToString()
contentsToString in class ACPathEntryCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.