Class CMacroFileEntry
java.lang.Object
org.eclipse.cdt.core.settings.model.ACSettingEntry
org.eclipse.cdt.core.settings.model.ACPathEntry
org.eclipse.cdt.core.settings.model.CMacroFileEntry
- All Implemented Interfaces:
ICLanguageSettingEntry,ICLanguageSettingPathEntry,ICMacroFileEntry,ICPathEntry,ICSettingEntry
Representation in the project model of include file settings entries.
As an example, those are supplied by a gcc compiler with option "-imacros".
-
Field Summary
Fields inherited from interface org.eclipse.cdt.core.settings.model.ICSettingEntry
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 Summary
ConstructorsConstructorDescriptionCMacroFileEntry(String name, int flags) This constructor is discouraged to be referenced by clients.CMacroFileEntry(org.eclipse.core.resources.IFile rc, int flags) This constructor is discouraged to be used directly.CMacroFileEntry(org.eclipse.core.runtime.IPath location, int flags) This constructor is discouraged to be used directly. -
Method Summary
Methods inherited from class org.eclipse.cdt.core.settings.model.ACPathEntry
contentsToString, fullPathForLocation, getFullPath, getLocation, isValueWorkspacePathMethods inherited from class org.eclipse.cdt.core.settings.model.ACSettingEntry
checkFlags, codeForContentsKey, codeForNameKey, equals, equalsByContents, equalsByName, getByNameMatchFlags, getFlags, getName, getValue, hashCode, isBuiltIn, isReadOnly, isResolved, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.cdt.core.settings.model.ICPathEntry
getFullPath, getLocation, isValueWorkspacePathMethods inherited from interface org.eclipse.cdt.core.settings.model.ICSettingEntry
equalsByContents, equalsByName, getFlags, getName, getValue, isBuiltIn, isReadOnly, isResolved
-
Constructor Details
-
CMacroFileEntry
This constructor is discouraged to be referenced by clients. Instead, use pooled entries with CDataUtil.createCMacroFileEntry(name, flags).- Parameters:
name- - macro file path. The path can be an absolute location on the local file-system or with flagICSettingEntry.VALUE_WORKSPACE_PATHit is treated as workspace full path.flags- - bitwise combination ofICSettingEntryflags.
-
CMacroFileEntry
public CMacroFileEntry(org.eclipse.core.runtime.IPath location, int flags) This constructor is discouraged to be used directly. Instead, use pooled entries with CDataUtil.createCMacroFileEntry(location.toString(), flags) or wrap it with CDataUtil.getPooledEntry(new CMacroFileEntry(location, flags)).- Parameters:
location- - macro file path. The path can be an absolute location on the local file-system or with flagICSettingEntry.VALUE_WORKSPACE_PATHit is treated as workspace full path.flags- - bitwise combination ofICSettingEntryflags.
-
CMacroFileEntry
public CMacroFileEntry(org.eclipse.core.resources.IFile rc, int flags) This constructor is discouraged to be used directly. Instead, use pooled entries wrapping with CDataUtil.getPooledEntry(new CMacroFileEntry(rc, flags)).- Parameters:
rc- - macro file as a resource in the workspace.flags- - bitwise combination ofICSettingEntryflags. IfICSettingEntry.VALUE_WORKSPACE_PATHis missing it will be supplied.
-
-
Method Details
-
getKind
public final int getKind()- Specified by:
getKindin interfaceICSettingEntry
-
isFile
public final boolean isFile()- Specified by:
isFilein classACPathEntry
-