Interface StringSegment
- All Known Implementing Classes:
AbstractSegment,IndexedSegment,LiteralSegment,NamedSegment,SingleSegment
public interface StringSegment
字符串模板-抽象 SectionBuffer
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
getText
String getText()获取文本值- Returns:
- 文本值,对于固定文本Segment,返回文本值;对于单占位符Segment,返回占位符;对于有前后缀的占位符Segment,返回占位符完整文本,例如: "{name}"
-