Package com.tangosol.config.expression
Class ValueMacroExpression.DefaultDelimiterExpansionProcessor
- java.lang.Object
-
- com.tangosol.config.expression.ValueMacroExpression.MacroExpansionProcessor
-
- com.tangosol.config.expression.ValueMacroExpression.DefaultDelimiterExpansionProcessor
-
- Direct Known Subclasses:
ValueMacroExpression.SpaceDefaultDelimiterExpansionProcessor
- Enclosing class:
- ValueMacroExpression
protected static class ValueMacroExpression.DefaultDelimiterExpansionProcessor extends ValueMacroExpression.MacroExpansionProcessor
Process macro parameter default delimiter expansion.
-
-
Constructor Summary
Constructors Constructor Description DefaultDelimiterExpansionProcessor(String sDefaultDelimiter)
Perform default delimiter expansion usingsDefaultDelimiter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess(String sMacro)
Return true iffsMacro
contains the delimiter that this processor handles.String
getDelimiter()
Return delimiter being used by the processor.String
process(String sMacro, ParameterResolver resolver, int cDepth)
Process macro parameter expansion onsMacro
containing no registered delimiters.-
Methods inherited from class com.tangosol.config.expression.ValueMacroExpression.MacroExpansionProcessor
validateMacroExpansion
-
-
-
-
Constructor Detail
-
DefaultDelimiterExpansionProcessor
public DefaultDelimiterExpansionProcessor(String sDefaultDelimiter)
Perform default delimiter expansion usingsDefaultDelimiter
.- Parameters:
sDefaultDelimiter
- default delimiter
-
-
Method Detail
-
getDelimiter
public String getDelimiter()
Description copied from class:ValueMacroExpression.MacroExpansionProcessor
Return delimiter being used by the processor.- Overrides:
getDelimiter
in classValueMacroExpression.MacroExpansionProcessor
- Returns:
- delimiter used by the processor or empty string if processor does not have a delimiter
-
canProcess
public boolean canProcess(String sMacro)
Description copied from class:ValueMacroExpression.MacroExpansionProcessor
Return true iffsMacro
contains the delimiter that this processor handles.- Overrides:
canProcess
in classValueMacroExpression.MacroExpansionProcessor
- Parameters:
sMacro
- the macro parameter- Returns:
- true iff this processor can process
sMacro
-
process
public String process(String sMacro, ParameterResolver resolver, int cDepth)
Description copied from class:ValueMacroExpression.MacroExpansionProcessor
Process macro parameter expansion onsMacro
containing no registered delimiters.- Overrides:
process
in classValueMacroExpression.MacroExpansionProcessor
- Parameters:
sMacro
- a string starting withprefix
and ending withsuffix
resolver
- macro parameter ParameterResolvercDepth
- expansion depth- Returns:
- expanded macro parameter or emptry string if macro parameter evaluates to null
-
-