Class AppendLineInserter<RECEIVER>
- java.lang.Object
-
- cc.carm.lib.configuration.value.text.function.inserter.ContentInserter<RECEIVER>
-
- cc.carm.lib.configuration.value.text.function.common.AppendLineInserter<RECEIVER>
-
- All Implemented Interfaces:
java.lang.Comparable<ContentInserter<RECEIVER>>
public class AppendLineInserter<RECEIVER> extends ContentInserter<RECEIVER>
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull java.util.regex.PatternAPPEND_PATTERNUsed to match the message insertion.-
Fields inherited from class cc.carm.lib.configuration.value.text.function.inserter.ContentInserter
pattern, priority
-
-
Constructor Summary
Constructors Constructor Description AppendLineInserter(int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable java.lang.StringextractID(@NotNull java.util.regex.Matcher matcher)protected @NotNull java.util.List<java.lang.String>get(RECEIVER receiver, @NotNull java.util.regex.Matcher matcher, @NotNull Insertable<RECEIVER,?> insertion)-
Methods inherited from class cc.carm.lib.configuration.value.text.function.inserter.ContentInserter
compareTo, handle, matcher, priority, setPattern
-
-
-
-
Field Detail
-
APPEND_PATTERN
@NotNull public static final @NotNull java.util.regex.Pattern APPEND_PATTERN
Used to match the message insertion.format:
- to insert parsed line {prefix}#content-id#{offset-above,offset-down}
- to insert original line {prefix}@content-id@{offset-above,offset-down}
original lines will not be parsed
example:- {- }#content-id#{1,1}
- @content-id@{1,1}
-
-
Method Detail
-
extractID
@Nullable protected @Nullable java.lang.String extractID(@NotNull @NotNull java.util.regex.Matcher matcher)- Specified by:
extractIDin classContentInserter<RECEIVER>
-
get
@NotNull protected @NotNull java.util.List<java.lang.String> get(@Nullable RECEIVER receiver, @NotNull @NotNull java.util.regex.Matcher matcher, @NotNull @NotNull Insertable<RECEIVER,?> insertion)- Specified by:
getin classContentInserter<RECEIVER>
-
-