Uses of Class
org.miaixz.bus.core.text.placeholder.segment.AbstractSegment
Packages that use AbstractSegment
Package
Description
字符串占位符相关封装,包括占位符替换变量和解析变量
占位符节点
-
Uses of AbstractSegment in org.miaixz.bus.core.text.placeholder
Fields in org.miaixz.bus.core.text.placeholder with type parameters of type AbstractSegmentModifier and TypeFieldDescriptionprotected List<AbstractSegment> StringTemplate.placeholderSegments所有占位符Methods in org.miaixz.bus.core.text.placeholder that return types with arguments of type AbstractSegmentModifier and TypeMethodDescriptionprotected List<AbstractSegment> StringTemplate.getPlaceholderSegments()获取 模板中的 占位符 segmentMethods in org.miaixz.bus.core.text.placeholder with parameters of type AbstractSegmentModifier and TypeMethodDescriptionprotected StringStringTemplate.formatMissingKey(AbstractSegment segment) 根据 策略 返回 格式化参数中 找不到 占位符 时的默认值protected StringStringTemplate.formatNullValue(AbstractSegment segment) 根据 策略 返回 占位符 对应的值为null时的返回值protected StringStringTemplate.getDefaultValue(AbstractSegment segment) 根据 占位符 返回默认值Method parameters in org.miaixz.bus.core.text.placeholder with type arguments of type AbstractSegmentModifier and TypeMethodDescriptionprotected StringStringTemplate.formatBySegment(Function<AbstractSegment, ?> valueSupplier) 根据 策略 和 默认值 处理需要序列化的值, 生成 格式化字符串StringTemplate.formatRawBySegment(Function<AbstractSegment, String> valueSupplier) 根据 原始数据 生成 格式化字符串protected voidStringTemplate.matchesByKey(String text, BiConsumer<String, String> keyValueConsumer, boolean hasDefaultValue, Function<AbstractSegment, String> defaultValueSupplier) 根据 策略 和 默认值 获得最终的 value,由消费者处理该 valuevoidStringTemplate.matchesRawBySegment(String text, BiConsumer<AbstractSegment, String> keyValueConsumer) 原始数据的解析方法 -
Uses of AbstractSegment in org.miaixz.bus.core.text.placeholder.segment
Subclasses of AbstractSegment in org.miaixz.bus.core.text.placeholder.segmentModifier and TypeClassDescriptionclass基字符串模板-基于下标的占位符 SectionBufferclass字符串模板-有前后缀的变量占位符 SectionBufferclass字符串模板-单变量占位符 SectionBuffer