Class TextCompiler<MSG,​RECEIVER,​SELF extends TextCompiler<MSG,​RECEIVER,​SELF>>

  • All Implemented Interfaces:
    Insertable<RECEIVER,​SELF>, Replaceable<RECEIVER,​SELF>
    Direct Known Subclasses:
    TextDispatcher

    public abstract class TextCompiler<MSG,​RECEIVER,​SELF extends TextCompiler<MSG,​RECEIVER,​SELF>>
    extends TextParser<RECEIVER,​SELF>
    • Field Detail

      • compiler

        protected java.util.function.BiFunction<RECEIVER,​java.lang.String,​MSG> compiler
    • Constructor Detail

      • TextCompiler

        public TextCompiler()
    • Method Detail

      • compiler

        public SELF compiler​(@NotNull
                             @NotNull java.util.function.BiFunction<RECEIVER,​java.lang.String,​MSG> compiler)
        Set the text compiler.
        Parameters:
        compiler - The text compiler.
        Returns:
        The current TextCompiler instance.
      • compile

        @NotNull
        public @NotNull java.util.List<MSG> compile​(@Nullable
                                                    RECEIVER receiver)
        Compile the text for specific receiver.
        Parameters:
        receiver - The receiver.
        Returns:
        The compiled text.
        See Also:
        TextParser.parse(Object, BiFunction)