Class SupplierBasedCdtVariableSubstitutor
java.lang.Object
org.eclipse.cdt.utils.cdtvariables.SupplierBasedCdtVariableSubstitutor
- All Implemented Interfaces:
IVariableSubstitutor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Constructor Summary
ConstructorsConstructorDescriptionSupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter) SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter, Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddResolvedMacro(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des, SupplierBasedCdtVariableSubstitutor.ResolvedMacro value) protected booleancheckEqual(Object o1, Object o2) Map<?, ?> removeResolvedMacro(String name) voidreset()resolveMacro(String macroName) resolveMacro(ICdtVariable macro) resolveToString(String macroName) called to resolve to String the macro reference of the specified nameprotected StringString[]resolveToStringList(String macroName) called to resolve to String-List the macro reference of the specified nameprotected String[]voidsetDelimiterMap(Map<?, ?> delimiterMap) voidsetIncorrectlyReferencedMacroValue(String incorrectlyReferencedMacroValue) voidsetInexistentMacroValue(String inexistentMacroValue) voidsetListDelimiter(String listDelimiter) void
-
Constructor Details
-
SupplierBasedCdtVariableSubstitutor
public SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter) -
SupplierBasedCdtVariableSubstitutor
public SupplierBasedCdtVariableSubstitutor(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter, Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue)
-
-
Method Details
-
resolveToString
protected String resolveToString(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException - Throws:
CdtVariableException
-
resolveToStringList
protected String[] resolveToStringList(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des) throws CdtVariableException - Throws:
CdtVariableException
-
resolveToString
Description 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
- 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
Description 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(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
-
getMacroContextInfo
-
reset
- Throws:
CdtVariableException
-
getDelimiterMap
-
setDelimiterMap
- Throws:
CdtVariableException
-
getIncorrectlyReferencedMacroValue
-
checkEqual
-
setIncorrectlyReferencedMacroValue
public void setIncorrectlyReferencedMacroValue(String incorrectlyReferencedMacroValue) throws CdtVariableException - Throws:
CdtVariableException
-
getInexistentMacroValue
-
setInexistentMacroValue
- Throws:
CdtVariableException
-
getListDelimiter
-
setListDelimiter
- Throws:
CdtVariableException
-