Class SupplierBasedCdtVariableSubstitutor
- java.lang.Object
-
- org.eclipse.cdt.utils.cdtvariables.SupplierBasedCdtVariableSubstitutor
-
- All Implemented Interfaces:
IVariableSubstitutor
public class SupplierBasedCdtVariableSubstitutor extends java.lang.Object implements IVariableSubstitutor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classSupplierBasedCdtVariableSubstitutor.MacroDescriptorprotected classSupplierBasedCdtVariableSubstitutor.ResolvedMacro
-
Constructor Summary
Constructors Constructor Description SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, java.lang.String inexistentMacroValue, java.lang.String listDelimiter)SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, java.lang.String inexistentMacroValue, java.lang.String listDelimiter, java.util.Map<?,?> delimiterMap, java.lang.String incorrectlyReferencedMacroValue)
-
Method Summary
-
-
-
Constructor Detail
-
SupplierBasedCdtVariableSubstitutor
public SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, java.lang.String inexistentMacroValue, java.lang.String listDelimiter)
-
SupplierBasedCdtVariableSubstitutor
public SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, java.lang.String inexistentMacroValue, java.lang.String listDelimiter, java.util.Map<?,?> delimiterMap, java.lang.String incorrectlyReferencedMacroValue)
-
-
Method Detail
-
resolveToString
protected java.lang.String resolveToString(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveToStringList
protected java.lang.String[] resolveToStringList(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveToString
public java.lang.String resolveToString(java.lang.String macroName) throws CdtVariableExceptionDescription copied from interface:IVariableSubstitutorcalled to resolve to String the macro reference of the specified name- Specified by:
resolveToStringin interfaceIVariableSubstitutor- Parameters:
macroName- the macro name- Returns:
- String
- Throws:
CdtVariableException
-
setMacroContextInfo
public void setMacroContextInfo(IVariableContextInfo info) throws CdtVariableException
- Throws:
CdtVariableException
-
getResolvedMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro getResolvedMacro(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro resolveMacro(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveToStringList
public java.lang.String[] resolveToStringList(java.lang.String macroName) throws CdtVariableExceptionDescription copied from interface:IVariableSubstitutorcalled to resolve to String-List the macro reference of the specified name- Specified by:
resolveToStringListin interfaceIVariableSubstitutor- Parameters:
macroName- the macro name- Returns:
- String[]
- Throws:
CdtVariableException
-
resolveMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro resolveMacro(java.lang.String macroName) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveParentMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro resolveParentMacro(SupplierBasedCdtVariableSubstitutor.MacroDescriptor macroDes) throws CdtVariableException
- Throws:
CdtVariableException
-
resolveMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro resolveMacro(ICdtVariable macro) throws CdtVariableException
- Throws:
CdtVariableException
-
addResolvedMacro
protected void addResolvedMacro(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des, SupplierBasedCdtVariableSubstitutor.ResolvedMacro value)
-
removeResolvedMacro
protected SupplierBasedCdtVariableSubstitutor.ResolvedMacro removeResolvedMacro(java.lang.String name)
-
getMacroContextInfo
public IVariableContextInfo getMacroContextInfo()
-
reset
public void reset() throws CdtVariableException- Throws:
CdtVariableException
-
getDelimiterMap
public java.util.Map<?,?> getDelimiterMap()
-
setDelimiterMap
public void setDelimiterMap(java.util.Map<?,?> delimiterMap) throws CdtVariableException- Throws:
CdtVariableException
-
getIncorrectlyReferencedMacroValue
public java.lang.String getIncorrectlyReferencedMacroValue()
-
checkEqual
protected boolean checkEqual(java.lang.Object o1, java.lang.Object o2)
-
setIncorrectlyReferencedMacroValue
public void setIncorrectlyReferencedMacroValue(java.lang.String incorrectlyReferencedMacroValue) throws CdtVariableException- Throws:
CdtVariableException
-
getInexistentMacroValue
public java.lang.String getInexistentMacroValue()
-
setInexistentMacroValue
public void setInexistentMacroValue(java.lang.String inexistentMacroValue) throws CdtVariableException- Throws:
CdtVariableException
-
getListDelimiter
public java.lang.String getListDelimiter()
-
setListDelimiter
public void setListDelimiter(java.lang.String listDelimiter) throws CdtVariableException- Throws:
CdtVariableException
-
-