接口 Insertable<RECEIVER,SELF>

所有已知实现类:
ContentHandler, PreparedText, TextCompiler, TextDispatcher, TextParser

public interface Insertable<RECEIVER,SELF>
  • 方法详细资料

    • inserters

    • inserter

      SELF inserter(@NotNull @NotNull ContentInserter<RECEIVER> inserter)
    • noneInsertion

      boolean noneInsertion()
    • inserting

      boolean inserting(@NotNull @NotNull String id)
    • getInsertion

      @Nullable @Nullable List<String> getInsertion(@NotNull @NotNull String id, @Nullable RECEIVER receiver)
    • insert

      SELF insert(@NotNull @NotNull String id, @Nullable @Nullable Function<RECEIVER,List<String>> supplier)
      Insert the specific contents by the id.
      参数:
      id - the id of the insertion text
      supplier - to supply the lines to insert
      返回:
      the current ContentHandler instance
    • insert

      default SELF insert(@NotNull @NotNull String id)
      Insert the specific contents by the id.
      参数:
      id - the id of the insertion text
      返回:
      the current ContentHandler instance
    • insert

      default SELF insert(@NotNull @NotNull String id, @NotNull @NotNull List<String> contents)
      Insert the specific contents by the id.
      参数:
      id - the id of the insertion text
      contents - the lines to insert
      返回:
      the current ContentHandler instance
    • insert

      default SELF insert(@NotNull @NotNull String id, @NotNull @NotNull String... contents)
      Insert the specific contents by the id.
      参数:
      id - the id of the insertion text
      contents - the lines to insert
      返回:
      the current ContentHandler instance
    • removeInsert

      SELF removeInsert(@NotNull @NotNull String id)