Class CdtVariable
java.lang.Object
org.eclipse.cdt.core.cdtvariables.CdtVariable
- All Implemented Interfaces:
ICdtVariable
- Direct Known Subclasses:
SupplierBasedCdtVariableSubstitutor.ResolvedMacro
This is the trivial implementation of the IBuildMacro used internaly by the MBS
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected String[]protected Stringprotected intFields inherited from interface org.eclipse.cdt.core.cdtvariables.ICdtVariable
VALUE_PATH_ANY, VALUE_PATH_ANY_LIST, VALUE_PATH_DIR, VALUE_PATH_DIR_LIST, VALUE_PATH_FILE, VALUE_PATH_FILE_LIST, VALUE_TEXT, VALUE_TEXT_LIST -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCdtVariable(String name, int type, String value) CdtVariable(String name, int type, String[] value) CdtVariable(ICdtVariable var) -
Method Summary
-
Field Details
-
fName
-
fType
protected int fType -
fStringValue
-
fStringListValue
-
-
Constructor Details
-
CdtVariable
protected CdtVariable() -
CdtVariable
-
CdtVariable
-
CdtVariable
-
-
Method Details
-
getName
Description copied from interface:ICdtVariableReturns the macro name- Specified by:
getNamein interfaceICdtVariable
-
getValueType
public int getValueType()- Specified by:
getValueTypein interfaceICdtVariable- Returns:
- IBuildMacro.VALUE_xxx
-
getStringValue
- Specified by:
getStringValuein interfaceICdtVariable- Throws:
CdtVariableException- if macro holds StringList-type value
-
getStringListValue
- Specified by:
getStringListValuein interfaceICdtVariable- Throws:
CdtVariableException- if macro holds single String-type value
-