接口 PlaceholderParser.Part
- 所有已知实现类:
PlaceholderParser.NestedPlaceholderPart,PlaceholderParser.SimplePlaceholderPart,PlaceholderParser.TextPart
- 封闭类:
- PlaceholderParser
static interface PlaceholderParser.Part
A part is a section of a String containing placeholders to replace.
-
方法概要
修饰符和类型方法说明resolve(PlaceholderParser.PartResolutionContext resolutionContext) Resolve this part using the specifiedPlaceholderParser.PartResolutionContext.static StringresolveAll(Iterable<PlaceholderParser.Part> parts, PlaceholderParser.PartResolutionContext resolutionContext) Return a String that appends the resolution of the specified parts.text()Provide a textual representation of this part.
-
方法详细资料
-
resolve
Resolve this part using the specifiedPlaceholderParser.PartResolutionContext.- 参数:
resolutionContext- the context to use- 返回:
- the resolved part
-
text
String text()Provide a textual representation of this part.- 返回:
- the raw text that this part defines
-
resolveAll
static String resolveAll(Iterable<PlaceholderParser.Part> parts, PlaceholderParser.PartResolutionContext resolutionContext) Return a String that appends the resolution of the specified parts.- 参数:
parts- the parts to resolveresolutionContext- the context to use for the resolution- 返回:
- a concatenation of the supplied parts with placeholders replaced inline
-