类 PathGenerator
java.lang.Object
cc.carm.lib.configuration.source.loader.PathGenerator
Path generator for configuration.
Path generator is a utility class that helps to generate the path of the configuration. It can be used to generate the path of the field or class.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明covertPath(String name) static StringcovertPathName(String name) Get the configuration name of the specified element.@Nullable StringgetClassPath(@NotNull ConfigurationHolder<?> holder, @Nullable String parentPath, @NotNull Class<?> clazz, @Nullable Field clazzField) @Nullable StringgetFieldPath(@NotNull ConfigurationHolder<?> holder, @Nullable String parentPath, @NotNull Field field) @NotNull UnaryOperator<String>static booleanprotected @Nullable Stringlink(@NotNull ConfigurationHolder<?> holder, @Nullable String parent, boolean root, @Nullable String path) static PathGeneratorof()static PathGeneratorof(UnaryOperator<String> pathConverter) static charpathSeparator(ConfigurationHolder<?> holder) protected StringvoidsetPathConverter(UnaryOperator<String> pathConverter)
-
字段详细资料
-
pathConverter
-
-
构造器详细资料
-
PathGenerator
-
-
方法详细资料
-
of
-
of
-
getPathConverter
-
setPathConverter
-
covertPath
-
getFieldPath
@Nullable public @Nullable String getFieldPath(@NotNull @NotNull ConfigurationHolder<?> holder, @Nullable @Nullable String parentPath, @NotNull @NotNull Field field) -
getClassPath
@Nullable public @Nullable String getClassPath(@NotNull @NotNull ConfigurationHolder<?> holder, @Nullable @Nullable String parentPath, @NotNull @NotNull Class<?> clazz, @Nullable @Nullable Field clazzField) -
select
-
link
@Nullable protected @Nullable String link(@NotNull @NotNull ConfigurationHolder<?> holder, @Nullable @Nullable String parent, boolean root, @Nullable @Nullable String path) -
isBlank
-
pathSeparator
-
covertPathName
Get the configuration name of the specified element. Use the naming convention of all lowercase and "-" links.e.g. "SOME_NAME" will be "some-name"
- 参数:
name- source name- 返回:
- the final path
-