Class ContentInserter<RECEIVER>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected @NotNull java.util.regex.Pattern pattern  
      protected int priority  
    • 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
      int compareTo​(@NotNull ContentInserter<RECEIVER> o)  
      protected abstract @Nullable java.lang.String extractID​(@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.Matcher matcher​(@NotNull java.lang.String text)  
      int priority()  
      void setPattern​(@NotNull java.util.regex.Pattern pattern)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • priority

        protected final int priority
      • pattern

        @NotNull
        protected @NotNull java.util.regex.Pattern pattern
    • Constructor Detail

      • ContentInserter

        public ContentInserter​(int priority,
                               @NotNull
                               @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:
        compareTo in interface java.lang.Comparable<RECEIVER>