Modifier and Type | Field and Description |
---|---|
static String |
REGEX_LEFT_DELIMITER |
static String |
REGEX_RIGHT_DELIMITER |
Constructor and Description |
---|
TemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static String |
newReplaceAll(String template,
Map replacements)
Unlike
oldReplaceAll(String, Map) this can handle nesting of the templates. |
static String |
oldReplaceAll(String template,
Map replacements) |
static String |
replaceAll(String template,
Map replacements)
Simple-minded template replacement.
|
static String |
rr(String template,
Map replacements) |
public static String REGEX_LEFT_DELIMITER
public static String REGEX_RIGHT_DELIMITER
public static String replaceAll(String template, Map replacements)
template
- replacements
- public static String newReplaceAll(String template, Map replacements)
oldReplaceAll(String, Map)
this can handle nesting of the templates.template
- replacements
- public static void main(String[] args)
Copyright © 2019. All Rights Reserved.