Class SupplierBasedCdtVariableSubstitutor
java.lang.Object
org.eclipse.cdt.utils.cdtvariables.SupplierBasedCdtVariableSubstitutor
- All Implemented Interfaces:
IVariableSubstitutor
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
-
Constructor Summary
ConstructorDescriptionSupplierBasedCdtVariableSubstitutor
(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter) SupplierBasedCdtVariableSubstitutor
(IVariableContextInfo contextInfo, String inexistentMacroValue, String listDelimiter, Map<?, ?> delimiterMap, String incorrectlyReferencedMacroValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addResolvedMacro
(SupplierBasedCdtVariableSubstitutor.MacroDescriptor des, SupplierBasedCdtVariableSubstitutor.ResolvedMacro value) protected boolean
checkEqual
(Object o1, Object o2) Map
<?, ?> removeResolvedMacro
(String name) void
reset()
resolveMacro
(String macroName) resolveMacro
(ICdtVariable macro) resolveToString
(String macroName) called to resolve to String the macro reference of the specified nameprotected String
String[]
resolveToStringList
(String macroName) called to resolve to String-List the macro reference of the specified nameprotected String[]
void
setDelimiterMap
(Map<?, ?> delimiterMap) void
setIncorrectlyReferencedMacroValue
(String incorrectlyReferencedMacroValue) void
setInexistentMacroValue
(String inexistentMacroValue) void
setListDelimiter
(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:IVariableSubstitutor
called to resolve to String the macro reference of the specified name- Specified by:
resolveToString
in 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:IVariableSubstitutor
called to resolve to String-List the macro reference of the specified name- Specified by:
resolveToStringList
in 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
-