类 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>
-
字段概要
从类继承的字段 cc.carm.lib.configuration.value.text.function.ContentHandler
disableInsertion, inserters, insertion, lineSeparator, paramReplacer, params, parser, replacers -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidParse the texts for the receiver.<V> List<V>parse(RECEIVER receiver, @NotNull BiFunction<RECEIVER, String, V> compiler) Parse the texts for the receiver.@Nullable StringParse the texts as a single line for the receiver.<V> VparseLine(RECEIVER receiver, @NotNull BiFunction<RECEIVER, String, V> compiler) Parse the texts as a single line for the receiver.abstract TextContentstexts()从类继承的方法 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从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cc.carm.lib.configuration.value.text.function.inserter.Insertable
insert, insert, insert从接口继承的方法 cc.carm.lib.configuration.value.text.function.replacer.Replaceable
applyReplacements, replace, replace, replace, replace, replace, replace, replace, replacer
-
构造器详细资料
-
TextParser
public TextParser()
-
-
方法详细资料
-
texts
-
parse
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 receivercompiler- the compiler- 返回:
- the parsed line
-
parseLine
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
-