org.eclipse.cdt.core.cdtvariables
Class CdtVariable
java.lang.Object
org.eclipse.cdt.core.cdtvariables.CdtVariable
- All Implemented Interfaces:
- ICdtVariable
- Direct Known Subclasses:
- BuildMacro, EclipseVariablesVariableSupplier.EclipseVarMacro, EnvironmentVariableSupplier.EnvVarMacro, StorableCdtVariable
public class CdtVariable
- extends java.lang.Object
- implements ICdtVariable
This is the trivial implementation of the IBuildMacro used internaly by the MBS
- Since:
- 3.0
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CdtVariable
public CdtVariable(java.lang.String name,
int type,
java.lang.String value)
CdtVariable
public CdtVariable(java.lang.String name,
int type,
java.lang.String[] value)
CdtVariable
public CdtVariable(ICdtVariable var)
getName
public java.lang.String getName()
- Description copied from interface:
ICdtVariable
- Returns the macro name
- Specified by:
getName
in interface ICdtVariable
- Returns:
getValueType
public int getValueType()
- Specified by:
getValueType
in interface ICdtVariable
- Returns:
- IBuildMacro.VALUE_xxx
getStringValue
public java.lang.String getStringValue()
throws CdtVariableException
- Specified by:
getStringValue
in interface ICdtVariable
- Throws:
CdtVariableException
- if macro holds StringList-type value
getStringListValue
public java.lang.String[] getStringListValue()
throws CdtVariableException
- Specified by:
getStringListValue
in interface ICdtVariable
- Throws:
CdtVariableException
- if macro holds single String-type value