public class MacroResolverImpl extends Object implements MacroResolver
MacroResolver
. Uses a chain of Macro
s to
resolve the macros. After that, the specified additional macro values are replaced.Constructor and Description |
---|
MacroResolverImpl() |
Modifier and Type | Method and Description |
---|---|
String |
resolveMacros(String str)
Resolve the macros found in the string.
|
String |
resolveMacros(String str,
Map<String,?> macroValues)
Resolve the macros found in the string.
|
void |
setMacros(List<Macro> macros) |
public String resolveMacros(String str)
MacroResolver
resolveMacros
in interface MacroResolver
str
- the string with the macrospublic String resolveMacros(String str, Map<String,?> macroValues)
MacroResolver
resolveMacros
in interface MacroResolver
str
- the string with the macrosmacroValues
- additional macros valuesCopyright © 2021 CrafterCMS. All rights reserved.