public class StrTemplateParser extends Object
| Constructor and Description |
|---|
StrTemplateParser(String template)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getVariables(String input)
提取变量值
示例输入:"abcDreamluxxHellocc"
输出:{name=Dreamlu, like=Hello}
|
public StrTemplateParser(String template)
template - 模板字符串,例如:"abc${name}xx${like}cc"Copyright © 2025. All rights reserved.