| 程序包 | 说明 |
|---|---|
| com.jn.langx.text | |
| com.jn.langx.text.ini | |
| com.jn.langx.text.placeholder | |
| com.jn.langx.text.properties |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
StringTemplates.format(String template,
Pattern variablePattern,
PlaceholderParser variableValueProvider)
模板变量替换
|
static String |
StringTemplates.format(String template,
String variableStartFlag,
String variableEndFlag,
PlaceholderParser variableValueProvider)
模板替换
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
IniPlaceholderParser |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
IniPlaceholderHandler.parseStringValue(String value,
String defaultSection,
PlaceholderParser placeholderParser,
Set<String> visitedPlaceholders) |
String |
IniPlaceholderHandler.replacePlaceholders(String value,
String defaultSection,
PlaceholderParser placeholderResolver)
Replaces all placeholders of format
${name} with the value returned
from the supplied PlaceholderParser. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PropertySourcePlaceholderParser |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
PropertyPlaceholderHandler.parseStringValue(String template,
PlaceholderParser placeholderResolver,
Set<String> visitedPlaceholders) |
String |
PropertyPlaceholderHandler.replacePlaceholders(String template,
PlaceholderParser placeholderResolver)
Replaces all placeholders of format
${name} with the value returned
from the supplied PlaceholderParser. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PropertiesPlaceholderParser |
Copyright © 2021. All rights reserved.