|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.core.cdtvariables.CdtVariableManager
public class CdtVariableManager
The default IBuildMacroProvider implementation
Method Summary | |
---|---|
void |
checkVariableIntegrity(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
checks the integrity of the Macros If there are inconsistencies, such as when a macro value refers to a nonexistent macro or when two macros refer to each other, this method will throw the BuildMacroException exception The BuildMacroException will contain the human-readable string describing the inconsistency and the array of the IBuildMacro interfaces that will represent the macros that caused the inconsistency. |
java.lang.String |
convertStringListToString(java.lang.String[] value,
java.lang.String listDelimiter)
converts StringList value into String of the following format: " |
static CdtVariableManager |
getDefault()
|
org.eclipse.cdt.utils.cdtvariables.IVariableContextInfo |
getMacroContextInfo(int contextType,
java.lang.Object contextData)
|
org.eclipse.cdt.utils.cdtvariables.IVariableSubstitutor |
getMacroSubstitutor(org.eclipse.cdt.utils.cdtvariables.IVariableContextInfo info,
java.lang.String inexistentMacroValue,
java.lang.String listDelimiter)
|
org.eclipse.cdt.utils.cdtvariables.ICdtVariableSupplier[] |
getSuppliers(int contextType,
java.lang.Object contextData)
|
ICdtVariable |
getVariable(java.lang.String macroName,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
Returns reference to the IBuildMacro interface representing Macro of the specified name or null if there is there is no such macro |
ICdtVariable[] |
getVariables(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
|
boolean |
isEnvironmentVariable(ICdtVariable variable,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
|
boolean |
isStringListValue(java.lang.String value,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
|
boolean |
isUserVariable(ICdtVariable variable,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
|
java.lang.String[] |
resolveStringListValue(java.lang.String value,
java.lang.String nonexistentMacrosValue,
java.lang.String listDelimiter,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
if the string contains a value that can be treated as a StringList resolves it to arrays of strings otherwise throws the BuildMacroException exception |
java.lang.String[] |
resolveStringListValues(java.lang.String[] value,
java.lang.String nonexistentMacrosValue,
java.lang.String listDelimiter,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
resolves macros in the array of string-list values |
java.lang.String |
resolveValue(java.lang.String value,
java.lang.String nonexistentMacrosValue,
java.lang.String listDelimiter,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
resolves all macros in the string. |
org.eclipse.core.variables.IStringVariable |
toEclipseVariable(ICdtVariable variable,
org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final UserDefinedVariableSupplier fUserDefinedMacroSupplier
public static final BuildSystemVariableSupplier fBuildSystemVariableSupplier
public static final EnvironmentVariableSupplier fEnvironmentMacroSupplier
public static final CdtMacroSupplier fCdtMacroSupplier
public static final EclipseVariablesVariableSupplier fEclipseVariablesMacroSupplier
Method Detail |
---|
public static CdtVariableManager getDefault()
public ICdtVariable getVariable(java.lang.String macroName, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
ICdtVariableManager
getVariable
in interface ICdtVariableManager
public ICdtVariable[] getVariables(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
getVariables
in interface ICdtVariableManager
public org.eclipse.cdt.utils.cdtvariables.ICdtVariableSupplier[] getSuppliers(int contextType, java.lang.Object contextData)
public org.eclipse.cdt.utils.cdtvariables.IVariableContextInfo getMacroContextInfo(int contextType, java.lang.Object contextData)
contextType
- contextData
-
public java.lang.String convertStringListToString(java.lang.String[] value, java.lang.String listDelimiter)
ICdtVariableManager
convertStringListToString
in interface ICdtVariableManager
public java.lang.String resolveValue(java.lang.String value, java.lang.String nonexistentMacrosValue, java.lang.String listDelimiter, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg) throws CdtVariableException
ICdtVariableManager
resolveValue
in interface ICdtVariableManager
value
- the value to be resolvednonexistentMacrosValue
- specifies the value that inexistent macro references will be
expanded to. If null the BuildMacroException is thrown in case the string to be resolved
references inexistent macroslistDelimiter
- if not null, StringList macros are expanded as
�CdtVariableException
public java.lang.String[] resolveStringListValue(java.lang.String value, java.lang.String nonexistentMacrosValue, java.lang.String listDelimiter, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg) throws CdtVariableException
ICdtVariableManager
resolveStringListValue
in interface ICdtVariableManager
CdtVariableException
isStringListValue
public boolean isStringListValue(java.lang.String value, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg) throws CdtVariableException
isStringListValue
in interface ICdtVariableManager
CdtVariableException
public void checkVariableIntegrity(org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg) throws CdtVariableException
ICdtVariableManager
checkVariableIntegrity
in interface ICdtVariableManager
CdtVariableException
public org.eclipse.cdt.utils.cdtvariables.IVariableSubstitutor getMacroSubstitutor(org.eclipse.cdt.utils.cdtvariables.IVariableContextInfo info, java.lang.String inexistentMacroValue, java.lang.String listDelimiter)
public java.lang.String[] resolveStringListValues(java.lang.String[] value, java.lang.String nonexistentMacrosValue, java.lang.String listDelimiter, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg) throws CdtVariableException
ICdtVariableManager
resolveStringListValues
in interface ICdtVariableManager
CdtVariableException
isStringListValue
public boolean isEnvironmentVariable(ICdtVariable variable, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
isEnvironmentVariable
in interface ICdtVariableManager
public org.eclipse.core.variables.IStringVariable toEclipseVariable(ICdtVariable variable, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
toEclipseVariable
in interface ICdtVariableManager
public boolean isUserVariable(ICdtVariable variable, org.eclipse.cdt.core.settings.model.ICConfigurationDescription cfg)
isUserVariable
in interface ICdtVariableManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |