@FunctionalInterface
public static interface TextTemplateHandler.Expander
TextTemplateHandler.withoutContext()
context-less
text handler and use its TextTemplateHandler.WithoutContext.register(Pattern, TextTemplateHandler.Expander)
,
TextTemplateHandler.WithoutContext.register(String, TextTemplateHandler.Expander)
and
TextTemplateHandler.WithoutContext.expand(String)
methods.Modifier and Type | Method and Description |
---|---|
java.lang.String |
expand(java.util.regex.MatchResult match,
TextTemplateHandler.WithoutContext handler)
Expand the given match.
|
@NotNull java.lang.String expand(@NotNull java.util.regex.MatchResult match, @NotNull TextTemplateHandler.WithoutContext handler) throws java.io.IOException
match
- match result to expandhandler
- the text template handler which found the match,
may be used for recursive expansionjava.io.IOException
- on expansion errors