Package com.imyeyu.utils
Class StringInterpolator
java.lang.Object
com.imyeyu.utils.StringInterpolator
字符串插值器
- Version:
- 2022-12-01 00:41
- Author:
- 夜雨
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic StringInterpolatorstatic StringInterpolator注入变量boolean空值处理策略voidputAllFilter(Map<String, com.imyeyu.java.bean.CallbackArgReturn<String, String>> filters) voidvoidremoveFilter(String name) voidsetNullable(boolean nullable) 空值处理策略
-
Field Details
-
DOLLAR_OBJ
- See Also:
-
SIMPLE_OBJ
- See Also:
-
-
Constructor Details
-
StringInterpolator
-
-
Method Details
-
inject
注入变量- Parameters:
template- 字符串argsMap- 变量表- Returns:
- 插值结果
-
putFilter
-
putAllFilter
-
removeFilter
-
clearFilter
public void clearFilter() -
createDollarInterpolator
-
createSimpleInterpolator
-
setNullable
public void setNullable(boolean nullable) 空值处理策略 -
isNullable
public boolean isNullable()空值处理策略
-