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 Macro
s to
resolve the macros. After that, the specified additional macro values are replaced.- Author:
- Alfonso Vásquez
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MacroResolverImpl
public MacroResolverImpl()
-
-
Method Details
-
setMacros
-
resolveMacros
Description copied from interface:MacroResolver
Resolve the macros found in the string.- Specified by:
resolveMacros
in interfaceMacroResolver
- Parameters:
str
- the string with the macros- Returns:
- the resolved string
-
resolveMacros
Description copied from interface:MacroResolver
Resolve the macros found in the string.- Specified by:
resolveMacros
in interfaceMacroResolver
- Parameters:
str
- the string with the macrosmacroValues
- additional macros values- Returns:
- the resolved string
-