- 封闭接口:
- LinCommand
public static interface LinCommand.TypeResolver
自定义命令参数类型解析器。
-
方法概要
-
方法详细资料
-
supports
判断是否支持参数类型。- 参数:
typeId- 类型 ID- 返回:
- 支持时为
true
-
parse
解析单个命令参数。- 参数:
ctx- 解析上下文token- 原始参数文本- 返回:
- 解析后的值
- 抛出:
Exception- 参数无效或解析失败时
-
complete
提供参数补全候选。- 参数:
ctx- 解析上下文prefix- 当前输入前缀- 返回:
- 补全候选
-