Package net.mamoe.mirai.console.command.resolve
Types
BuiltInCommandCallResolver
Link copied to clipboard
Builtin implementation of CommandCallResolver
CommandCallInterceptor
Link copied to clipboard
指令解析和调用拦截器. 用于在指令各解析阶段拦截或转换调用.
CommandCallResolver
Link copied to clipboard
The resolver converting a CommandCall into ResolvedCommandCall based on registered []
CommandResolveResult
Link copied to clipboard
InterceptedReason
Link copied to clipboard
拦截原因
InterceptResult
Link copied to clipboard
ResolvedCommandCall
Link copied to clipboard
The resolved CommandCall.
ResolvedCommandCallImpl
Link copied to clipboard
class ResolvedCommandCallImpl(caller: CommandSender, callee: Command, calleeSignature: CommandSignature, rawValueArguments: List<CommandValueArgument>, context: CommandArgumentContext) : ResolvedCommandCall
Content copied to clipboard
Default implementation.
ResolvedCommandValueArgument
Link copied to clipboard
data class ResolvedCommandValueArgument<T>(parameter: CommandValueParameter<T>, value: T)
Content copied to clipboard
Functions
call
Link copied to clipboard
Invoke this resolved call.
fold
Link copied to clipboard
inline fun <R> CommandResolveResult.fold(onSuccess: (ResolvedCommandCall?) -> R, onFailure: (CommandExecuteResult.Failure) -> R): R
Content copied to clipboard
inline fun <T, R> InterceptResult<T>.fold(onIntercepted: (reason: InterceptedReason) -> R, otherwise: (T) -> R): R
Content copied to clipboard
getOrElse
Link copied to clipboard
inline fun CommandResolveResult.getOrElse(onFailure: (CommandExecuteResult.Failure) -> ResolvedCommandCall?): ResolvedCommandCall
Content copied to clipboard
inline fun <T : R, R> InterceptResult<T>.getOrElse(onIntercepted: (reason: InterceptedReason) -> R): R
Content copied to clipboard
InterceptedReason
Link copied to clipboard
创建一个 InterceptedReason