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, isValueWorkspacePath
checkFlags, codeForContentsKey, codeForNameKey, equalsByName, getByNameMatchFlags, getFlags, getName, getValue, isBuiltIn, isReadOnly, isResolved, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullPath, getLocation, isValueWorkspacePath
equalsByName, getFlags, getName, getValue, isBuiltIn, isReadOnly, isResolved
public 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 ICSettingEntry
public final boolean isFile()
isFile
in class ACPathEntry
public org.eclipse.core.runtime.IPath getSourceAttachmentPath()
ICLibraryFileEntry
null
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 ICLibraryFileEntry
null
if nonepublic org.eclipse.core.runtime.IPath getSourceAttachmentPrefixMapping()
ICLibraryFileEntry
null
value
if and only if getSourceAttachmentPath
returns
a non-null
value.getSourceAttachmentPrefixMapping
in interface ICLibraryFileEntry
null
if
not applicablepublic org.eclipse.core.runtime.IPath getSourceAttachmentRootPath()
ICLibraryFileEntry
null
value
if and only if getSourceAttachmentPath
returns
a non-null
value.getSourceAttachmentRootPath
in interface ICLibraryFileEntry
null
if
not applicablepublic int hashCode()
hashCode
in class ACSettingEntry
public boolean equals(Object other)
equals
in class ACSettingEntry
public boolean equalsByContents(ICSettingEntry entry)
equalsByContents
in interface ICSettingEntry
equalsByContents
in class ACSettingEntry
protected String contentsToString()
contentsToString
in class ACPathEntry
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.