Package com.tangosol.config.expression
Class ValueMacroExpression.MacroExpansionProcessor
java.lang.Object
com.tangosol.config.expression.ValueMacroExpression.MacroExpansionProcessor
- Direct Known Subclasses:
ValueMacroExpression.DefaultDelimiterExpansionProcessor,ValueMacroExpression.OffsetLengthSubstringExpansionProcessor
- Enclosing class:
ValueMacroExpression
A Macro Expansion Processor for a macro not containing any registered delimiters.
-
Constructor Summary
Constructors -
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.booleanvalidateMacroExpansion(String sProp, String sPropValue, String sDefault, int cDepth) Validate macro expansion is not self referencing or contain circular references that will never complete expansion.
-
Constructor Details
-
MacroExpansionProcessor
protected MacroExpansionProcessor()
-
-
Method Details
-
process
Process macro parameter expansion onsMacrocontaining no registered delimiters. -
canProcess
Return true iffsMacrocontains the delimiter that this processor handles.- Parameters:
sMacro- the macro parameter- Returns:
- true iff this processor can process
sMacro
-
getDelimiter
Return delimiter being used by the processor.- Returns:
- delimiter used by the processor or empty string if processor does not have a delimiter
-
validateMacroExpansion
Validate macro expansion is not self referencing or contain circular references that will never complete expansion.- Parameters:
sProp- the propertysPropValue- the expanded property valuecDepth- count of macro expansions- Returns:
- false if self referencing in macro expansion or exceed {#link #MAX_MACRO_EXPANSIONS}; otherwise return true
-