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
ConstructorsConstructorDescriptionDefaultDelimiterExpansionProcessor(String sDefaultDelimiter) Perform default delimiter expansion usingsDefaultDelimiter. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProcess(String sMacro) Return true iffsMacrocontains the delimiter that this processor handles.Return delimiter being used by the processor.process(String sMacro, ParameterResolver resolver, int cDepth) Process macro parameter expansion onsMacrocontaining no registered delimiters.Methods inherited from class com.tangosol.config.expression.ValueMacroExpression.MacroExpansionProcessor
validateMacroExpansion
-
Constructor Details
-
DefaultDelimiterExpansionProcessor
Perform default delimiter expansion usingsDefaultDelimiter.- Parameters:
sDefaultDelimiter- default delimiter
-
-
Method Details
-
getDelimiter
Description copied from class:ValueMacroExpression.MacroExpansionProcessorReturn delimiter being used by the processor.- Overrides:
getDelimiterin classValueMacroExpression.MacroExpansionProcessor- Returns:
- delimiter used by the processor or empty string if processor does not have a delimiter
-
canProcess
Description copied from class:ValueMacroExpression.MacroExpansionProcessorReturn true iffsMacrocontains the delimiter that this processor handles.- Overrides:
canProcessin classValueMacroExpression.MacroExpansionProcessor- Parameters:
sMacro- the macro parameter- Returns:
- true iff this processor can process
sMacro
-
process
Description copied from class:ValueMacroExpression.MacroExpansionProcessorProcess macro parameter expansion onsMacrocontaining no registered delimiters.- Overrides:
processin classValueMacroExpression.MacroExpansionProcessor- Parameters:
sMacro- a string starting withprefixand ending withsuffixresolver- macro parameter ParameterResolvercDepth- expansion depth- Returns:
- expanded macro parameter or emptry string if macro parameter evaluates to null
-