CommandArgumentContext
指令参数环境, 即 CommandValueArgumentParser 的集合, 用于 CompositeCommand 和 SimpleCommand.
在指令解析时, 总是从 CommandArgumentContextAware.context 搜索相关解析器
See also
Types
Builtins
Link copied to clipboard
ParserPair
Link copied to clipboard
data class ParserPair<T : Any>(klass: KClass<T>, parser: CommandValueArgumentParser<T>)
Content copied to clipboard
Functions
Inheritors
Builtins
Link copied to clipboard
EmptyCommandArgumentContext
Link copied to clipboard
SimpleCommandArgumentContext
Link copied to clipboard
Extensions
plus
Link copied to clipboard
operator fun CommandArgumentContext.plus(replacer: CommandArgumentContext): CommandArgumentContext
Content copied to clipboard
合并两个 buildCommandArgumentContext, replacer 将会替换 this 中重复的 parser.
operator fun CommandArgumentContext.plus(replacer: List<CommandArgumentContext.ParserPair<*>>): CommandArgumentContext
Content copied to clipboard