Interface Insertable<RECEIVER,SELF>
-
- All Known Implementing Classes:
ContentHandler,PreparedText,TextCompiler,TextDispatcher,TextParser
public interface Insertable<RECEIVER,SELF>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable java.util.List<java.lang.String>getInsertion(@NotNull java.lang.String id, RECEIVER receiver)default SELFinsert(@NotNull java.lang.String id)Insert the specific contents by the id.default SELFinsert(@NotNull java.lang.String id, @NotNull java.lang.String... contents)Insert the specific contents by the id.default SELFinsert(@NotNull java.lang.String id, @NotNull java.util.List<java.lang.String> contents)Insert the specific contents by the id.SELFinsert(@NotNull java.lang.String id, @Nullable java.util.function.Function<RECEIVER,java.util.List<java.lang.String>> supplier)Insert the specific contents by the id.SELFinserter(@NotNull ContentInserter<RECEIVER> inserter)java.util.List<ContentInserter<RECEIVER>>inserters()booleaninserting(@NotNull java.lang.String id)booleannoneInsertion()SELFremoveInsert(@NotNull java.lang.String id)
-
-
-
Method Detail
-
inserters
java.util.List<ContentInserter<RECEIVER>> inserters()
-
inserter
SELF inserter(@NotNull @NotNull ContentInserter<RECEIVER> inserter)
-
noneInsertion
boolean noneInsertion()
-
inserting
boolean inserting(@NotNull @NotNull java.lang.String id)
-
getInsertion
@Nullable @Nullable java.util.List<java.lang.String> getInsertion(@NotNull @NotNull java.lang.String id, @Nullable RECEIVER receiver)
-
insert
SELF insert(@NotNull @NotNull java.lang.String id, @Nullable @Nullable java.util.function.Function<RECEIVER,java.util.List<java.lang.String>> supplier)
Insert the specific contents by the id.- Parameters:
id- the id of the insertion textsupplier- to supply the lines to insert- Returns:
- the current
ContentHandlerinstance
-
insert
default SELF insert(@NotNull @NotNull java.lang.String id)
Insert the specific contents by the id.- Parameters:
id- the id of the insertion text- Returns:
- the current
ContentHandlerinstance
-
insert
default SELF insert(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.util.List<java.lang.String> contents)
Insert the specific contents by the id.- Parameters:
id- the id of the insertion textcontents- the lines to insert- Returns:
- the current
ContentHandlerinstance
-
insert
default SELF insert(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String... contents)
Insert the specific contents by the id.- Parameters:
id- the id of the insertion textcontents- the lines to insert- Returns:
- the current
ContentHandlerinstance
-
removeInsert
SELF removeInsert(@NotNull @NotNull java.lang.String id)
-
-