Package org.craftercms.engine.macro.impl
Class MacroResolverImpl
java.lang.Object
org.craftercms.engine.macro.impl.MacroResolverImpl
- All Implemented Interfaces:
MacroResolver
Default implementation of
MacroResolver. Uses a chain of Macros to
resolve the macros. After that, the specified additional macro values are replaced.- Author:
- Alfonso Vásquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveMacros(String str) Resolve the macros found in the string.resolveMacros(String str, Map<String, ?> macroValues) Resolve the macros found in the string.
-
Constructor Details
-
MacroResolverImpl
-
-
Method Details
-
resolveMacros
Description copied from interface:MacroResolverResolve the macros found in the string.- Specified by:
resolveMacrosin interfaceMacroResolver- Parameters:
str- the string with the macros- Returns:
- the resolved string
-
resolveMacros
Description copied from interface:MacroResolverResolve the macros found in the string.- Specified by:
resolveMacrosin interfaceMacroResolver- Parameters:
str- the string with the macrosmacroValues- additional macros values- Returns:
- the resolved string
-