public class CdtVariable extends Object implements ICdtVariable
| Modifier and Type | Field and Description |
|---|---|
protected String |
fName |
protected String[] |
fStringListValue |
protected String |
fStringValue |
protected int |
fType |
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| Modifier | Constructor and Description |
|---|---|
protected |
CdtVariable() |
|
CdtVariable(ICdtVariable var) |
|
CdtVariable(String name,
int type,
String value) |
|
CdtVariable(String name,
int type,
String[] value) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the macro name
|
String[] |
getStringListValue() |
String |
getStringValue() |
int |
getValueType() |
protected String fName
protected int fType
protected String fStringValue
protected String[] fStringListValue
protected CdtVariable()
public CdtVariable(ICdtVariable var)
public String getName()
ICdtVariablegetName in interface ICdtVariablepublic int getValueType()
getValueType in interface ICdtVariablepublic String getStringValue() throws CdtVariableException
getStringValue in interface ICdtVariableCdtVariableException - if macro holds StringList-type valuepublic String[] getStringListValue() throws CdtVariableException
getStringListValue in interface ICdtVariableCdtVariableException - if macro holds single String-type valueCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.