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 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
ConstructorsConstructorDescriptionCMacroEntry(String name, String value, int flags) This constructor is discouraged to be referenced by clients. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbooleanbooleanequalsByContents(ICSettingEntry entry) final intgetKind()getValue()inthashCode()Methods inherited from class ACSettingEntry
checkFlags, codeForContentsKey, codeForNameKey, equalsByName, getByNameMatchFlags, getFlags, getName, isBuiltIn, isReadOnly, isResolved, toStringMethods inherited from interface 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 ofICSettingEntryflags.
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceICMacroEntry- Specified by:
getValuein interfaceICSettingEntry- Overrides:
getValuein classACSettingEntry
-
getKind
public final int getKind()- Specified by:
getKindin interfaceICSettingEntry
-
equals
- Overrides:
equalsin classACSettingEntry
-
hashCode
public int hashCode()- Overrides:
hashCodein classACSettingEntry
-
equalsByContents
- Specified by:
equalsByContentsin interfaceICSettingEntry- Overrides:
equalsByContentsin classACSettingEntry
-
contentsToString
- Specified by:
contentsToStringin classACSettingEntry
-