Class CMacroEntry
java.lang.Object
org.eclipse.cdt.core.settings.model.ACSettingEntry
org.eclipse.cdt.core.settings.model.CMacroEntry
- All Implemented Interfaces:
ICLanguageSettingEntry
,ICMacroEntry
,ICSettingEntry
Representation in the project model of macro settings entries.
As an example, those are supplied by a gcc compiler with option "-D".
-
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
ConstructorDescriptionCMacroEntry
(String name, String value, int flags) This constructor is discouraged to be referenced by clients. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
boolean
boolean
equalsByContents
(ICSettingEntry entry) final int
getKind()
getValue()
int
hashCode()
Methods inherited from class org.eclipse.cdt.core.settings.model.ACSettingEntry
checkFlags, codeForContentsKey, codeForNameKey, equalsByName, getByNameMatchFlags, getFlags, getName, isBuiltIn, isReadOnly, isResolved, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.cdt.core.settings.model.ICSettingEntry
equalsByName, getFlags, getName, isBuiltIn, isReadOnly, isResolved
-
Constructor Details
-
CMacroEntry
This constructor is discouraged to be referenced by clients. Instead, use pooled entries with CDataUtil.createCMacroEntry(name, value, flags).- Parameters:
name
- - name of the macro.value
- - value of the macro.flags
- - bitwise combination ofICSettingEntry
flags.
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceICMacroEntry
- Specified by:
getValue
in interfaceICSettingEntry
- Overrides:
getValue
in classACSettingEntry
-
getKind
public final int getKind()- Specified by:
getKind
in interfaceICSettingEntry
-
equals
- Overrides:
equals
in classACSettingEntry
-
hashCode
public int hashCode()- Overrides:
hashCode
in classACSettingEntry
-
equalsByContents
- Specified by:
equalsByContents
in interfaceICSettingEntry
- Overrides:
equalsByContents
in classACSettingEntry
-
contentsToString
- Specified by:
contentsToString
in classACSettingEntry
-