类 TextParser<RECEIVER,SELF extends TextParser<RECEIVER,SELF>>

java.lang.Object
cc.carm.lib.configuration.value.text.function.ContentHandler<RECEIVER,SELF>
cc.carm.lib.configuration.value.text.function.TextParser<RECEIVER,SELF>
所有已实现的接口:
Insertable<RECEIVER,SELF>, Replaceable<RECEIVER,SELF>
直接已知子类:
TextCompiler

public abstract class TextParser<RECEIVER,SELF extends TextParser<RECEIVER,SELF>> extends ContentHandler<RECEIVER,SELF>
  • 构造器详细资料

    • TextParser

      public TextParser()
  • 方法详细资料

    • texts

      public abstract TextContents texts()
    • parse

      public List<String> parse(@Nullable RECEIVER receiver)
      Parse the texts for the receiver.
      参数:
      receiver - the receiver
      返回:
      the parsed line
    • parse

      public <V> List<V> parse(@Nullable RECEIVER receiver, @NotNull @NotNull BiFunction<RECEIVER,String,V> compiler)
      Parse the texts for the receiver.
      类型参数:
      V - the type of the message
      参数:
      receiver - the receiver
      compiler - the compiler
      返回:
      the parsed line
    • parseLine

      @Nullable public @Nullable String parseLine(@Nullable RECEIVER receiver)
      Parse the texts as a single line for the receiver.
      参数:
      receiver - the receiver
      返回:
      the parsed line
    • parseLine

      @Nullable public <V> V parseLine(@Nullable RECEIVER receiver, @NotNull @NotNull BiFunction<RECEIVER,String,V> compiler)
      Parse the texts as a single line for the receiver.
      类型参数:
      V - the type of the message
      参数:
      receiver - the receiver
      返回:
      the parsed line
    • handle

      public void handle(@Nullable RECEIVER receiver, @NotNull @NotNull Consumer<String> lineConsumer)