public class CommentStringUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
CommentStringUtil.KeywordFilter |
| 构造器和说明 |
|---|
CommentStringUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MapKeyVal<String> |
getAssign(String str)
根据源码字符串,获取赋值的类名和变量名
|
static String |
getMapGetMethodKey(MapGetMethodsPreEnum preEnum,
String str) |
static String |
getReturnVariable(List<String> sources) |
static boolean |
isAssignLine(String paramName,
String line) |
static boolean |
isVariableLine(String variable,
String line) |
static String |
keywordFilter(String pre,
String post,
String str,
CommentStringUtil.KeywordFilter... filter)
过滤字符串
|
public static String keywordFilter(String pre, String post, String str, CommentStringUtil.KeywordFilter... filter)
pre - 需要丢弃的前缀post - 需要丢弃的后缀str - 字符串filter - 过滤器public static String getMapGetMethodKey(MapGetMethodsPreEnum preEnum, String str)
Copyright © 2022. All rights reserved.