Class ContentInserter<RECEIVER>
- java.lang.Object
-
- cc.carm.lib.configuration.value.text.function.inserter.ContentInserter<RECEIVER>
-
- All Implemented Interfaces:
java.lang.Comparable<ContentInserter<RECEIVER>>
- Direct Known Subclasses:
AppendLineInserter,OptionalLineInserter
public abstract class ContentInserter<RECEIVER> extends java.lang.Object implements java.lang.Comparable<ContentInserter<RECEIVER>>
-
-
Constructor Summary
Constructors Constructor Description ContentInserter(int priority, @NotNull java.util.regex.Pattern pattern)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull ContentInserter<RECEIVER> o)protected abstract @Nullable java.lang.StringextractID(@NotNull java.util.regex.Matcher matcher)protected abstract @NotNull java.util.List<java.lang.String>get(RECEIVER receiver, @NotNull java.util.regex.Matcher matcher, @NotNull Insertable<RECEIVER,?> insertions)@Nullable java.util.List<java.lang.String>handle(RECEIVER receiver, @NotNull java.lang.String line, @NotNull Insertable<RECEIVER,?> insertions)@NotNull java.util.regex.Matchermatcher(@NotNull java.lang.String text)intpriority()voidsetPattern(@NotNull java.util.regex.Pattern pattern)
-
-
-
Method Detail
-
priority
public int priority()
-
setPattern
public void setPattern(@NotNull @NotNull java.util.regex.Pattern pattern)
-
matcher
@NotNull public @NotNull java.util.regex.Matcher matcher(@NotNull @NotNull java.lang.String text)
-
extractID
@Nullable protected abstract @Nullable java.lang.String extractID(@NotNull @NotNull java.util.regex.Matcher matcher)
-
get
@NotNull protected abstract @NotNull java.util.List<java.lang.String> get(@Nullable RECEIVER receiver, @NotNull @NotNull java.util.regex.Matcher matcher, @NotNull @NotNull Insertable<RECEIVER,?> insertions)
-
handle
@Nullable public @Nullable java.util.List<java.lang.String> handle(@Nullable RECEIVER receiver, @NotNull @NotNull java.lang.String line, @NotNull @NotNull Insertable<RECEIVER,?> insertions)
-
compareTo
public int compareTo(@NotNull @NotNull ContentInserter<RECEIVER> o)- Specified by:
compareToin interfacejava.lang.Comparable<RECEIVER>
-
-