MostSpecificSelector class
选择 TriggerSelector 最具体的真实规则实现。
- Extends
属性
$kind | |
selector |
方法
initialize(On |
使用规则集初始化选择器。 |
select(Action |
选择要执行的最佳规则。 |
继承的方法
configure(Record<string, unknown>) | 用于配置 对象的 Fluent 方法。 |
get |
属性详细信息
$kind
static $kind: string
属性值
string
selector
方法详细信息
initialize(OnCondition[], boolean)
使用规则集初始化选择器。
function initialize(conditionals: OnCondition[], _evaluate: boolean)
参数
- conditionals
要匹配的可能规则。
- _evaluate
-
boolean
如果应在选择时评估规则,则默认为 True。
select(ActionContext)
选择要执行的最佳规则。
function select(context: ActionContext): Promise<OnCondition[]>
参数
- context
- ActionContext
当前会话轮次的上下文。
返回
Promise<OnCondition[]>
原始列表中要执行的最佳规则。
继承的方法详细信息
configure(Record<string, unknown>)
用于配置 对象的 Fluent 方法。
function configure(config: Record<string, unknown>): this
参数
- config
-
Record<string, unknown>
要应用的配置设置。
返回
this
继承自 Configure.configure
getConverter(string)
function getConverter(_property: string): Converter | ConverterFactory
参数
- _property
-
string
条件选择器配置的键。
返回
Converter | ConverterFactory
选择器配置的转换器。
继承自 Configurable.getConverter