Class TextCompiler<MSG,RECEIVER,SELF extends TextCompiler<MSG,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>
-
- cc.carm.lib.configuration.value.text.function.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 Summary
Fields Modifier and Type Field Description protected java.util.function.BiFunction<RECEIVER,java.lang.String,MSG>compiler-
Fields inherited from class cc.carm.lib.configuration.value.text.function.ContentHandler
disableInsertion, inserters, insertion, lineSeparator, paramReplacer, params, parser, replacers
-
-
Constructor Summary
Constructors Constructor Description TextCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<MSG>compile(RECEIVER receiver)Compile the text for specific receiver.MSGcompileLine(RECEIVER receiver)Compile the singleton text for specific receiver.SELFcompiler(@NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,MSG> compiler)Set the text compiler.-
Methods inherited from class cc.carm.lib.configuration.value.text.function.TextParser
handle, parse, parse, parseLine, parseLine, texts
-
Methods inherited from class cc.carm.lib.configuration.value.text.function.ContentHandler
buildParams, disableInsertion, enableInsertion, getInsertion, handle, insert, inserter, inserters, inserting, lineSeparator, noneInsertion, paramReplacer, params, parse, parser, placeholder, placeholders, placeholders, placeholders, removeInsert, replacer, replacers, self, setPlaceholders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.configuration.value.text.function.inserter.Insertable
insert, insert, insert
-
Methods inherited from interface cc.carm.lib.configuration.value.text.function.replacer.Replaceable
applyReplacements, replace, replace, replace, replace, replace, replace, replace, replacer
-
-
-
-
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
TextCompilerinstance.
-
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)
-
compileLine
@Nullable public MSG compileLine(@Nullable RECEIVER receiver)
Compile the singleton text for specific receiver.- Parameters:
receiver- The receiver.- Returns:
- The compiled text.
- See Also:
TextParser.parseLine(Object, BiFunction)
-
-