CommandArgumentContext
指令参数环境, 即 CommandValueArgumentParser 的集合, 用于 CompositeCommand 和 SimpleCommand.
在指令解析时, 总是从 CommandArgumentContextAware.context 搜索相关解析器
See also
Types
Link copied to clipboard
Link copied to clipboard
data class ParserPair<T : Any>(val klass: KClass<T>, val parser: CommandValueArgumentParser<T>)
Content copied to clipboard
Functions
Inheritors
Extensions
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