Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- action(Consumer) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates an action from a consumer 从消费者创建动作
- Action - Interface in cloud.opencode.base.rules.model
-
Action Interface - Rule Action Abstraction 动作接口 - 规则动作抽象
- ACTION_EXECUTION - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Action execution error - 动作执行错误
- ActionProvider - Interface in cloud.opencode.base.rules.spi
-
Action Provider SPI - Service Provider Interface for Action Discovery 动作提供者SPI - 动作发现的服务提供者接口
- add(Object) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- add(Object) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Adds a fact to the store 向存储添加事实
- add(String, Object) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- add(String, Object) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Adds a named fact to the store 向存储添加命名事实
- addFact(Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Adds a fact object to the context 向上下文添加事实对象
- addFact(String, Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Adds a named fact object to the context 向上下文添加命名的事实对象
- addListener(RuleListener) - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Adds a rule listener 添加规则监听器
- addListener(RuleListener) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- addListener(RuleListener) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Adds a rule execution listener 添加规则执行监听器
- addRow(Object...) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds a row using varargs syntax 使用可变参数语法添加行
- addRule(Rule) - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Adds a rule to the group 向组添加规则
- addRule(Rule) - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Adds a rule to the group 向组添加规则
- addRules(Rule...) - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Adds multiple rules to the group 向组添加多个规则
- addRules(Rule...) - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Adds multiple rules to the group 向组添加多个规则
- addRules(List) - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Adds multiple rules to the group 向组添加多个规则
- addRules(List) - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Adds multiple rules to the group 向组添加多个规则
- afterEvaluate(Rule, RuleContext, boolean) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- afterEvaluate(Rule, RuleContext, boolean) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called after a rule is evaluated 在规则评估后调用
- afterEvaluate(Rule, RuleContext, boolean) - Method in class cloud.opencode.base.rules.metric.MetricsListener
-
Computes duration and records the evaluation metric 计算持续时间并记录评估指标
- afterEvaluate(Rule, RuleContext, boolean) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- afterExecute(Rule, RuleContext) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- afterExecute(Rule, RuleContext) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called after a rule is executed successfully 在规则成功执行后调用
- afterExecute(Rule, RuleContext) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- AggregationStrategy - Enum Class in cloud.opencode.base.rules.score
-
Aggregation Strategy - Defines How Individual Rule Scores Are Combined 聚合策略 - 定义如何组合各规则的分数
- allOutputs() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns the value of the
allOutputsrecord component. - alwaysFalse() - Static method in interface cloud.opencode.base.rules.model.Condition
-
A condition that always returns false 始终返回false的条件
- alwaysFalse() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates an always-false condition 创建始终为假的条件
- alwaysTrue() - Static method in interface cloud.opencode.base.rules.model.Condition
-
A condition that always returns true 始终返回true的条件
- alwaysTrue() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates an always-true condition 创建始终为真的条件
- and(Condition) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an additional AND condition object 添加额外的AND条件对象
- and(Condition) - Method in interface cloud.opencode.base.rules.model.Condition
-
Returns a condition that is the logical AND of this and another 返回此条件与另一个条件的逻辑AND
- and(Condition...) - Static method in class cloud.opencode.base.rules.condition.CompositeCondition
-
Creates an AND composite condition 创建AND组合条件
- and(Predicate) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an additional AND condition 添加额外的AND条件
- AND - Enum constant in enum class cloud.opencode.base.rules.condition.CompositeCondition.Operator
-
Logical AND - all conditions must be true | 逻辑AND - 所有条件必须为true
- andThen(Action) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an additional action object 添加额外的动作对象
- andThen(Action) - Method in interface cloud.opencode.base.rules.model.Action
-
Returns an action that executes this action followed by another 返回先执行此动作然后执行另一个动作的动作
- andThen(Consumer) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an additional action 添加额外的动作
- ANY - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Any - Return any matching row (all matches must produce same output) 任意 - 返回任意匹配的行(所有匹配必须产生相同输出)
- AVERAGE - Enum constant in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Average of all scores (0 if none) | 所有分数的平均值(如果没有则为0)
- avgDurationNanos() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Computes the average evaluation duration in nanoseconds 计算平均评估持续时间(纳秒)
B
- beforeEvaluate(Rule, RuleContext) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- beforeEvaluate(Rule, RuleContext) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called before a rule is evaluated 在规则评估前调用
- beforeEvaluate(Rule, RuleContext) - Method in class cloud.opencode.base.rules.metric.MetricsListener
-
Records the start time before rule evaluation 在规则评估前记录开始时间
- beforeEvaluate(Rule, RuleContext) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- beforeExecute(Rule, RuleContext) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- beforeExecute(Rule, RuleContext) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called before a rule is executed 在规则执行前调用
- build() - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Builds the decision table 构建决策表
- build() - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Builds the rule 构建规则
- build() - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Builds the rule engine 构建规则引擎
- build() - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Builds the rule group 构建规则组
- build() - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Builds the RuleGroup 构建RuleGroup
- build() - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Builds the RuleResult 构建RuleResult
- builder(String) - Static method in class cloud.opencode.base.rules.model.RuleGroup
-
Creates a builder for RuleGroup 创建RuleGroup的构建器
C
- cause() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns the value of the
causerecord component. - CIRCULAR_DEPENDENCY - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Circular dependency detected among rules | 检测到规则之间的循环依赖
- clear() - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- clear() - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- clear() - Method in interface cloud.opencode.base.rules.model.FactStore
-
Clears all facts 清除所有事实
- clear() - Method in interface cloud.opencode.base.rules.RuleEngine
-
Clears all registered rules 清除所有已注册的规则
- clearResults() - Method in class cloud.opencode.base.rules.RuleContext
-
Clears all results 清除所有结果
- clearVariables() - Method in class cloud.opencode.base.rules.RuleContext
-
Clears all variables 清除所有变量
- close() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Closes resources used by this provider 关闭此提供者使用的资源
- cloud.opencode.base.rules - module cloud.opencode.base.rules
-
OpenCode Base Rules Module OpenCode 基础规则引擎模块
- cloud.opencode.base.rules - package cloud.opencode.base.rules
-
OpenCode Base Rules - Lightweight Rule Engine for Java OpenCode基础规则 - Java轻量级规则引擎
- cloud.opencode.base.rules.action - package cloud.opencode.base.rules.action
-
Rule Actions - Action Implementations 规则动作 - 动作实现
- cloud.opencode.base.rules.condition - package cloud.opencode.base.rules.condition
-
Rule Conditions - Condition Implementations 规则条件 - 条件实现
- cloud.opencode.base.rules.conflict - package cloud.opencode.base.rules.conflict
-
Conflict Resolution - Rule Conflict Handling 冲突解决 - 规则冲突处理
- cloud.opencode.base.rules.decision - package cloud.opencode.base.rules.decision
-
Decision Tables - Table-Based Rule Definition 决策表 - 基于表格的规则定义
- cloud.opencode.base.rules.dsl - package cloud.opencode.base.rules.dsl
-
Rule DSL - Fluent API for Rule Construction 规则DSL - 规则构建的流式API
- cloud.opencode.base.rules.engine - package cloud.opencode.base.rules.engine
-
Rule Engine - Default Implementations 规则引擎 - 默认实现
- cloud.opencode.base.rules.exception - package cloud.opencode.base.rules.exception
-
Rule Exceptions - Exception Classes 规则异常 - 异常类
- cloud.opencode.base.rules.explain - package cloud.opencode.base.rules.explain
- cloud.opencode.base.rules.key - package cloud.opencode.base.rules.key
- cloud.opencode.base.rules.listener - package cloud.opencode.base.rules.listener
-
Rule Listeners - Execution Monitoring 规则监听器 - 执行监控
- cloud.opencode.base.rules.metric - package cloud.opencode.base.rules.metric
- cloud.opencode.base.rules.model - package cloud.opencode.base.rules.model
-
Rule Model - Core Model Classes for Rules 规则模型 - 规则的核心模型类
- cloud.opencode.base.rules.score - package cloud.opencode.base.rules.score
- cloud.opencode.base.rules.spi - package cloud.opencode.base.rules.spi
-
Rule SPI - Service Provider Interfaces 规则SPI - 服务提供者接口
- cloud.opencode.base.rules.trace - package cloud.opencode.base.rules.trace
- cloud.opencode.base.rules.validation - package cloud.opencode.base.rules.validation
- COLLECT - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Collect - Return all matching rows 收集 - 返回所有匹配的行
- compareTo(RuleGroup) - Method in class cloud.opencode.base.rules.model.RuleGroup
- compareTo(Rule) - Method in interface cloud.opencode.base.rules.Rule
-
Compares rules by priority (lower value = higher priority) 按优先级比较规则(值越小优先级越高)
- CompositeAction - Class in cloud.opencode.base.rules.action
-
Composite Action - Executes Multiple Actions in Sequence 组合动作 - 按顺序执行多个动作
- CompositeAction(List) - Constructor for class cloud.opencode.base.rules.action.CompositeAction
-
Creates a composite action 创建组合动作
- CompositeCondition - Class in cloud.opencode.base.rules.condition
-
Composite Condition - Combines Multiple Conditions with Logical Operators 组合条件 - 使用逻辑运算符组合多个条件
- CompositeCondition(CompositeCondition.Operator, List) - Constructor for class cloud.opencode.base.rules.condition.CompositeCondition
-
Creates a composite condition 创建组合条件
- CompositeCondition.Operator - Enum Class in cloud.opencode.base.rules.condition
-
Logical operator for composite conditions 组合条件的逻辑运算符
- condition(Predicate) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a condition from a predicate 从谓词创建条件
- Condition - Interface in cloud.opencode.base.rules.model
-
Condition Interface - Rule Condition Abstraction 条件接口 - 规则条件抽象
- CONDITION_EVALUATION - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Condition evaluation error - 条件评估错误
- conditionResult() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
conditionResultrecord component. - CONFLICT_RESOLUTION - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Conflict resolution error - 冲突解决错误
- ConflictResolver - Interface in cloud.opencode.base.rules.conflict
-
Conflict Resolver Interface - Determines Rule Execution Order 冲突解决器接口 - 确定规则执行顺序
- ConsumerAction - Class in cloud.opencode.base.rules.action
-
Consumer Action - Action Based on Java Consumer 消费者动作 - 基于Java消费者的动作
- ConsumerAction(Consumer) - Constructor for class cloud.opencode.base.rules.action.ConsumerAction
-
Creates a consumer action 创建消费者动作
- contains(TypedKey) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Checks if a typed key exists in the store 检查类型化键是否存在于存储中
- contains(TypedKey) - Method in class cloud.opencode.base.rules.RuleContext
-
Checks if a typed key exists in variables or facts 检查类型化键是否存在于变量或事实中
- contains(Class) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- contains(Class) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Checks if a fact of the given type exists 检查给定类型的事实是否存在
- contains(String) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- contains(String) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Checks if a named fact exists 检查命名事实是否存在
- contains(String) - Method in class cloud.opencode.base.rules.RuleContext
-
Checks if a variable exists 检查变量是否存在
- context() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new empty rule context 创建新的空规则上下文
- contextOf(Object...) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a rule context with initial facts 使用初始事实创建规则上下文
- create() - Static method in class cloud.opencode.base.rules.RuleContext
-
Creates an empty rule context 创建空的规则上下文
D
- DECISION_TABLE - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Decision table error - 决策表错误
- DecisionResult - Record Class in cloud.opencode.base.rules.decision
-
Decision Result - Result of Decision Table Evaluation 决策结果 - 决策表评估的结果
- DecisionResult(boolean, Map, List, List) - Constructor for record class cloud.opencode.base.rules.decision.DecisionResult
-
Creates an instance of a
DecisionResultrecord class. - decisionTable() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new decision table builder 创建新的决策表构建器
- decisionTable(String) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new decision table builder with the given name 使用给定名称创建新的决策表构建器
- DecisionTable - Interface in cloud.opencode.base.rules.decision
-
Decision Table Interface - Table-Based Rule Definition 决策表接口 - 基于表格的规则定义
- DecisionTableBuilder - Class in cloud.opencode.base.rules.dsl
-
Decision Table Builder - Fluent DSL for Decision Table Construction 决策表构建器 - 决策表构建的流式DSL
- DecisionTableBuilder() - Constructor for class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Creates a new decision table builder 创建新的决策表构建器
- DEFAULT_PRIORITY - Static variable in interface cloud.opencode.base.rules.Rule
-
Default priority value | 默认优先级值
- defaultEngine() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new default rule engine 创建新的默认规则引擎
- DefaultFactStore - Class in cloud.opencode.base.rules.model
-
Default Fact Store Implementation 默认事实存储实现
- DefaultFactStore() - Constructor for class cloud.opencode.base.rules.model.DefaultFactStore
- DefaultRule - Class in cloud.opencode.base.rules.engine
-
Default Rule Implementation 默认规则实现
- DefaultRule(String, String, int, String, boolean, Condition, Action) - Constructor for class cloud.opencode.base.rules.engine.DefaultRule
-
Creates a default rule 创建默认规则
- DefaultRule(String, String, int, String, boolean, Condition, Action, boolean) - Constructor for class cloud.opencode.base.rules.engine.DefaultRule
-
Creates a default rule with terminal flag 创建带终止标志的默认规则
- DefaultRuleEngine - Class in cloud.opencode.base.rules.engine
-
Default Rule Engine Implementation 默认规则引擎实现
- DefaultRuleEngine() - Constructor for class cloud.opencode.base.rules.engine.DefaultRuleEngine
- description(String) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Sets the rule description 设置规则描述
- description(String) - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Sets the group description 设置组描述
- description(String) - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Sets the description 设置描述
- details() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns the value of the
detailsrecord component. - DUPLICATE_RULE_NAME - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Two or more rules share the same name | 两个或更多规则共享相同名称
- duration() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
durationrecord component.
E
- EMPTY_GROUP - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Rule group is an empty string | 规则分组为空字符串
- EMPTY_RULE_NAME - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Rule name is null or blank | 规则名称为null或空白
- enabled(boolean) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Sets whether the rule is enabled 设置规则是否启用
- engine() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new rule engine builder 创建新的规则引擎构建器
- engineWith(RuleGroup) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a rule engine with the given rule group 使用给定规则组创建规则引擎
- engineWith(Rule...) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a rule engine with the given rules 使用给定规则创建规则引擎
- equals(Object) - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.key.TypedKey
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.RuleResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
errorrecord component. - error(ValidationIssue.IssueType, String, String) - Static method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Creates an ERROR-level validation issue 创建ERROR级别的验证问题
- ERROR - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.Severity
-
Blocking error that makes the rule set invalid | 使规则集无效的阻塞性错误
- errors() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
errorsrecord component. - errors() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns only ERROR-level issues 仅返回ERROR级别的问题
- errorType() - Method in exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Gets the type of rule error that occurred 获取发生的规则错误类型
- evaluate(RuleContext) - Method in class cloud.opencode.base.rules.condition.CompositeCondition
- evaluate(RuleContext) - Method in class cloud.opencode.base.rules.condition.PredicateCondition
- evaluate(RuleContext) - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Evaluates the decision table against the given context 针对给定上下文评估决策表
- evaluate(RuleContext) - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- evaluate(RuleContext) - Method in class cloud.opencode.base.rules.engine.DefaultRule
- evaluate(RuleContext) - Method in interface cloud.opencode.base.rules.model.Condition
-
Evaluates this condition against the given context 针对给定上下文评估此条件
- evaluate(RuleContext) - Method in interface cloud.opencode.base.rules.Rule
-
Evaluates the rule condition against the given context 根据给定上下文评估规则条件
- evaluate(Map) - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Evaluates the decision table against the given inputs 针对给定输入评估决策表
- evaluate(Map) - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- evaluationCount() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns the value of the
evaluationCountrecord component. - execute(RuleContext) - Method in class cloud.opencode.base.rules.action.CompositeAction
- execute(RuleContext) - Method in class cloud.opencode.base.rules.action.ConsumerAction
- execute(RuleContext) - Method in class cloud.opencode.base.rules.engine.DefaultRule
- execute(RuleContext) - Method in interface cloud.opencode.base.rules.model.Action
-
Executes this action with the given context 使用给定上下文执行此动作
- execute(RuleContext) - Method in interface cloud.opencode.base.rules.Rule
-
Executes the rule action with the given context 使用给定上下文执行规则动作
- executed() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
executedrecord component. - executionTime() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
executionTimerecord component. - executionTime(Duration) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Sets the execution time 设置执行时间
- ExecutionTrace - Record Class in cloud.opencode.base.rules.trace
-
Execution Trace - Records the Complete Execution Trace of a Rule Engine Run 执行轨迹 - 记录规则引擎一次运行的完整执行轨迹
- ExecutionTrace(List, Duration, int, int, int) - Constructor for record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Canonical constructor with validation 带验证的规范构造函数
- explain(ExecutionTrace) - Static method in class cloud.opencode.base.rules.explain.RuleExplainer
-
Generates an explanation from an execution trace 从执行轨迹生成解释
- Explanation - Record Class in cloud.opencode.base.rules.explain
-
Explanation - Complete Explanation of a Rule Engine Execution 解释 - 规则引擎执行的完整解释
- Explanation(String, List) - Constructor for record class cloud.opencode.base.rules.explain.Explanation
-
Canonical constructor with validation 带验证的规范构造函数
F
- facts() - Method in class cloud.opencode.base.rules.RuleContext
-
Gets the fact store 获取事实存储
- FactStore - Interface in cloud.opencode.base.rules.model
-
Fact Store Interface - Manages Facts in Rule Context 事实存储接口 - 管理规则上下文中的事实
- failCount() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns the value of the
failCountrecord component. - failed(String, String, Throwable) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a failed rule 添加已失败的规则
- failed(String, Duration, Throwable) - Static method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Creates a trace for a rule that failed during execution 创建执行期间失败的规则轨迹
- failedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of failed rules 获取已失败规则的数量
- failedCount() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the value of the
failedCountrecord component. - failedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
failedRulesrecord component. - failedRules() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the list of rule traces that failed 返回已失败的规则轨迹列表
- failure() - Static method in record class cloud.opencode.base.rules.RuleResult
-
Creates a failure result builder 创建失败结果构建器
- fire(RuleContext) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- fire(RuleContext) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Fires all matching rules 触发所有匹配的规则
- fire(RuleContext, String) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- fire(RuleContext, String) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Fires all matching rules in a specific group 触发特定分组中所有匹配的规则
- fireAndTrace(RuleContext) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Fires all matching rules and returns an execution trace 触发所有匹配规则并返回执行轨迹
- fireCount() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns the value of the
fireCountrecord component. - fired() - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Returns the value of the
firedrecord component. - fired(String) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a fired rule 添加已触发的规则
- fired(String, Duration) - Static method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Creates a trace for a rule that fired (condition matched and action executed) 创建已触发规则的轨迹(条件匹配且动作已执行)
- firedCount() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns the count of rules that fired 返回已触发规则的数量
- firedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of fired rules 获取已触发规则的数量
- firedCount() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the value of the
firedCountrecord component. - firedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
firedRulesrecord component. - firedRules() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the list of rule traces that fired 返回已触发的规则轨迹列表
- fireFirst(RuleContext) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- fireFirst(RuleContext) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Fires only the first matching rule 只触发第一个匹配的规则
- fireRate() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Computes the fire rate (fireCount / evaluationCount) 计算触发率(触发次数 / 评估次数)
- fireUntilHalt(RuleContext) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- fireUntilHalt(RuleContext) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Fires rules until no more rules can fire (for inference) 触发规则直到没有更多规则可以触发(用于推理)
- FIRST - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
First - Return the first matching row 首个 - 返回第一个匹配的行
G
- GENERAL - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
General error - 一般错误
- get(TypedKey) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Gets a typed fact value by typed key 通过类型化键获取类型化事实值
- get(TypedKey) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a typed value by typed key (checks variables first, then facts) 通过类型化键获取类型化值(先检查变量,再检查事实)
- get(TypedKey, T) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a typed value by typed key with a default 通过类型化键获取类型化值,带默认值
- get(Class) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- get(Class) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Gets a fact by type 按类型获取事实
- get(String) - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Gets an output value 获取输出值
- get(String) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- get(String) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Gets a fact by name 按名称获取事实
- get(String) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a variable value from the context 从上下文获取变量值
- get(String, T) - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Gets an output value with default 获取输出值,带默认值
- get(String, T) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a variable value with a default 获取变量值,带默认值
- getAction() - Method in class cloud.opencode.base.rules.engine.DefaultRule
-
Gets the action 获取动作
- getAction(String) - Method in interface cloud.opencode.base.rules.spi.ActionProvider
-
Gets an action by name 按名称获取动作
- getActions() - Method in class cloud.opencode.base.rules.action.CompositeAction
-
Gets the actions 获取动作列表
- getActions() - Method in interface cloud.opencode.base.rules.spi.ActionProvider
-
Gets all actions provided by this provider 获取此提供者提供的所有动作
- getAll(Class) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- getAll(Class) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Gets all facts of a specific type 获取特定类型的所有事实
- getAllSnapshots() - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Returns snapshots for all tracked rules 返回所有跟踪规则的快照
- getCondition() - Method in class cloud.opencode.base.rules.engine.DefaultRule
-
Gets the condition 获取条件
- getConditions() - Method in class cloud.opencode.base.rules.condition.CompositeCondition
-
Gets the conditions 获取条件列表
- getDescription() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- getDescription() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Gets the group description 获取组描述
- getDescription() - Method in interface cloud.opencode.base.rules.Rule
-
Gets the description of this rule 获取此规则的描述
- getFact(Class) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a fact by type 按类型获取事实
- getFacts(Class) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets all facts of a specific type 获取特定类型的所有事实
- getGroup() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- getGroup() - Method in interface cloud.opencode.base.rules.Rule
-
Gets the group this rule belongs to 获取此规则所属的分组
- getHitPolicy() - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Gets the hit policy 获取命中策略
- getHitPolicy() - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- getInputColumnCount() - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Gets the input column count 获取输入列数
- getInputColumns() - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Gets the input column names 获取输入列名
- getInputColumns() - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- getMetrics() - Method in class cloud.opencode.base.rules.metric.MetricsListener
-
Returns the underlying RuleMetrics instance 返回底层的RuleMetrics实例
- getName() - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Gets the decision table name 获取决策表名称
- getName() - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- getName() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- getName() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Gets the group name 获取组名
- getName() - Method in interface cloud.opencode.base.rules.Rule
-
Gets the unique name of this rule 获取此规则的唯一名称
- getName() - Method in interface cloud.opencode.base.rules.spi.ActionProvider
-
Gets the provider name 获取提供者名称
- getName() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Gets the provider name 获取提供者名称
- getOperator() - Method in class cloud.opencode.base.rules.condition.CompositeCondition
-
Gets the operator 获取运算符
- getOutputColumnCount() - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Gets the output column count 获取输出列数
- getOutputColumns() - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Gets the output column names 获取输出列名
- getOutputColumns() - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- getPriority() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- getPriority() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Gets the group priority 获取组优先级
- getPriority() - Method in interface cloud.opencode.base.rules.Rule
-
Gets the priority of this rule (lower value = higher priority) 获取此规则的优先级(值越小优先级越高)
- getPriority() - Method in interface cloud.opencode.base.rules.spi.ActionProvider
-
Gets the provider priority (lower = higher priority) 获取提供者优先级(数字越小 = 优先级越高)
- getPriority() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Gets the provider priority (lower = higher priority) 获取提供者优先级(数字越小 = 优先级越高)
- getResult(String) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a result value 获取结果值
- getResult(String) - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets a result value by key 按键获取结果值
- getResult(String, T) - Method in class cloud.opencode.base.rules.RuleContext
-
Gets a result value with default 获取结果值,带默认值
- getResult(String, T) - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets a result value with default 获取结果值,带默认值
- getResults() - Method in class cloud.opencode.base.rules.RuleContext
-
Gets all results as an immutable map 获取所有结果作为不可变Map
- getRowCount() - Method in interface cloud.opencode.base.rules.decision.DecisionTable
-
Gets the number of rows in the table 获取表中的行数
- getRowCount() - Method in class cloud.opencode.base.rules.decision.SimpleDecisionTable
- getRowCount() - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Gets the current row count 获取当前行数
- getRule(String) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- getRule(String) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Gets a rule by name 按名称获取规则
- getRuleCount() - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- getRuleCount() - Method in interface cloud.opencode.base.rules.RuleEngine
-
Gets the count of registered rules 获取已注册规则的数量
- getRules() - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- getRules() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Gets the rules in this group 获取此组中的规则
- getRules() - Method in interface cloud.opencode.base.rules.RuleEngine
-
Gets all registered rules 获取所有已注册的规则
- getRules() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Gets all rules provided by this provider 获取此提供者提供的所有规则
- getRules(String) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- getRules(String) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Gets rules in a specific group 获取特定分组中的规则
- getSnapshot(String) - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Returns a point-in-time snapshot of metrics for a specific rule 返回特定规则的指标时间点快照
- getTrace() - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
-
Returns the assembled execution trace after engine.fire() completes 在engine.fire()完成后返回组装好的执行轨迹
- getTrace(String) - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Finds a rule trace by rule name 按规则名称查找规则轨迹
- getVariables() - Method in class cloud.opencode.base.rules.RuleContext
-
Gets all variables as an immutable map 获取所有变量作为不可变Map
- group(String) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Sets the rule group 设置规则分组
- group(String) - Static method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Creates a rule group builder with the given name 使用给定名称创建规则组构建器
- group(String) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new rule group builder with the given name 使用给定名称创建新的规则组构建器
H
- haltWhen(Predicate) - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Sets a halt condition that stops rule execution when satisfied 设置停止条件,当满足时停止规则执行
- hasErrors() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Checks whether any ERROR-level issues exist 检查是否存在ERROR级别的问题
- hasFailed() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns whether this rule failed during execution 返回此规则在执行期间是否失败
- hasFailed(String) - Method in record class cloud.opencode.base.rules.RuleResult
-
Checks if a specific rule failed 检查特定规则是否失败
- hasFired() - Method in record class cloud.opencode.base.rules.RuleResult
-
Checks if any rules were fired 检查是否有规则被触发
- hasFired() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns whether this rule fired (condition matched and action executed) 返回此规则是否已触发(条件匹配且动作已执行)
- hashCode() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.key.TypedKey
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns a hash code value for this object.
- hasMatch() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Checks if any row matched 检查是否有行匹配
- hasResult(String) - Method in record class cloud.opencode.base.rules.RuleResult
-
Checks if a result exists 检查结果是否存在
- hasRule(String) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- hasRule(String) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Checks if a rule is registered 检查规则是否已注册
- hasWarnings() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Checks whether any WARNING-level issues exist 检查是否存在WARNING级别的问题
- hitPolicy(HitPolicy) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Sets the hit policy 设置命中策略
- HitPolicy - Enum Class in cloud.opencode.base.rules.decision
-
Hit Policy - Determines How Decision Table Matches Are Handled 命中策略 - 确定如何处理决策表匹配
I
- info() - Static method in class cloud.opencode.base.rules.OpenRules
-
Gets the library information 获取库信息
- input(String) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds an input column (type defaults to Object) 添加输入列(类型默认为Object)
- input(String, Class) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds an input column 添加输入列
- inputs(String...) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds multiple input columns 添加多个输入列
- INSTANCE - Static variable in class cloud.opencode.base.rules.conflict.OrderConflictResolver
-
Singleton instance | 单例实例
- INSTANCE - Static variable in class cloud.opencode.base.rules.conflict.PriorityConflictResolver
-
Singleton instance | 单例实例
- INVALID_DEFINITION - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Invalid rule definition - 无效的规则定义
- isEmpty() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Checks if this group is empty 检查此组是否为空
- isEnabled() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- isEnabled() - Method in interface cloud.opencode.base.rules.Rule
-
Checks if this rule is enabled 检查此规则是否启用
- isEnabled() - Method in interface cloud.opencode.base.rules.spi.ActionProvider
-
Checks if this provider is enabled 检查此提供者是否启用
- isEnabled() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Checks if this provider is enabled 检查此提供者是否启用
- issueCount() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns the total number of issues 返回问题总数
- issues() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns the value of the
issuesrecord component. - isTerminal() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- isTerminal() - Method in interface cloud.opencode.base.rules.Rule
-
Checks if this rule is terminal (stops engine execution when fired) 检查此规则是否是终止规则(触发时停止引擎执行)
- isValid() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Checks whether the rule set is valid (no ERROR-level issues) 检查规则集是否有效(没有ERROR级别的问题)
K
- key(String, Class) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a typed key for type-safe fact access 创建类型化键用于类型安全的事实访问
L
- loggingListener() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a logging rule listener 创建日志规则监听器
- LoggingRuleListener - Class in cloud.opencode.base.rules.listener
-
Logging Rule Listener - Logs Rule Execution Events 日志规则监听器 - 记录规则执行事件
- LoggingRuleListener() - Constructor for class cloud.opencode.base.rules.listener.LoggingRuleListener
M
- matchCount() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Gets the count of matched rows 获取匹配行的数量
- matchCount() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns the number of rules that matched (scored) 返回匹配(评分)的规则数量
- matched() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns the value of the
matchedrecord component. - matchedRows() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns the value of the
matchedRowsrecord component. - MAX - Enum constant in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Maximum score among all rules | 所有规则中的最高分
- message() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns the value of the
messagerecord component. - message() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns the value of the
messagerecord component. - metrics() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new rule metrics collector 创建新的规则指标收集器
- metricsListener() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a metrics listener with its own internal metrics collector 创建带有内部指标收集器的指标监听器
- metricsListener(RuleMetrics) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a metrics listener backed by the given metrics collector 创建由指定指标收集器支持的指标监听器
- MetricsListener - Class in cloud.opencode.base.rules.metric
-
Metrics Listener - RuleListener That Collects Execution Metrics 指标监听器 - 收集执行指标的规则监听器
- MetricsListener() - Constructor for class cloud.opencode.base.rules.metric.MetricsListener
-
Creates a MetricsListener with an internal RuleMetrics instance 使用内部RuleMetrics实例创建MetricsListener
- MetricsListener(RuleMetrics) - Constructor for class cloud.opencode.base.rules.metric.MetricsListener
-
Creates a MetricsListener with the given RuleMetrics instance 使用给定的RuleMetrics实例创建MetricsListener
- MetricsSnapshot - Record Class in cloud.opencode.base.rules.metric
-
Metrics Snapshot - Immutable Point-in-Time Snapshot of Rule Execution Metrics 指标快照 - 规则执行指标的不可变时间点快照
- MetricsSnapshot(String, long, long, long, long) - Constructor for record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Creates an instance of a
MetricsSnapshotrecord class. - multipleMatches(List, List) - Static method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Creates a result for multiple matches 创建多个匹配的结果
N
- name() - Method in record class cloud.opencode.base.rules.key.TypedKey
-
Returns the value of the
namerecord component. - name(String) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Sets the decision table name 设置决策表名称
- negate() - Method in interface cloud.opencode.base.rules.model.Condition
-
Returns a condition that is the logical negation of this 返回此条件的逻辑否定
- NEGATIVE_PRIORITY - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Rule priority is negative | 规则优先级为负数
- noMatch() - Static method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Creates a result for no match 创建无匹配的结果
- noOp() - Static method in interface cloud.opencode.base.rules.model.Action
-
An action that does nothing 什么都不做的动作
- noOp() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a no-op action 创建无操作动作
- not(Condition) - Static method in class cloud.opencode.base.rules.condition.CompositeCondition
-
Creates a NOT composite condition 创建NOT组合条件
- NOT - Enum constant in enum class cloud.opencode.base.rules.condition.CompositeCondition.Operator
-
Logical NOT - negates the first condition | 逻辑NOT - 否定第一个条件
- notMatched(String, Duration) - Static method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Creates a trace for a rule whose condition did not match 创建条件不匹配的规则轨迹
- NULL_ACTION - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Rule action is null | 规则动作为null
- NULL_CONDITION - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Rule condition is null | 规则条件为null
O
- of(Action...) - Static method in class cloud.opencode.base.rules.action.CompositeAction
-
Creates a composite action from multiple actions 从多个动作创建组合动作
- of(Object...) - Static method in class cloud.opencode.base.rules.RuleContext
-
Creates a context from alternating key-value pairs 从交替的键值对创建上下文
- of(String, Class) - Static method in record class cloud.opencode.base.rules.key.TypedKey
-
Creates a typed key with the given name and type 使用给定名称和类型创建类型化键
- of(String, String) - Static method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Creates a rule error without cause 创建没有原因的规则错误
- of(String, String, Throwable) - Static method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Creates a rule error with cause 创建带原因的规则错误
- of(Consumer) - Static method in class cloud.opencode.base.rules.action.ConsumerAction
-
Creates a consumer action from a consumer 从消费者创建消费者动作
- of(Predicate) - Static method in class cloud.opencode.base.rules.condition.PredicateCondition
-
Creates a predicate condition from a predicate 从谓词创建谓词条件
- of(List, Duration) - Static method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Creates an execution trace from a list of rule traces and total duration, computing fired/skipped/failed counts automatically 从规则轨迹列表和总持续时间创建执行轨迹,自动计算触发/跳过/失败计数
- of(Map) - Static method in class cloud.opencode.base.rules.RuleContext
-
Creates a context from a map of values 从值的Map创建上下文
- onFailure(Rule, RuleContext, Exception) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- onFailure(Rule, RuleContext, Exception) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called when a rule execution fails 当规则执行失败时调用
- onFailure(Rule, RuleContext, Exception) - Method in class cloud.opencode.base.rules.metric.MetricsListener
-
Records a rule failure 记录规则失败
- onFailure(Rule, RuleContext, Exception) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- onFinish(RuleContext, int, long) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- onFinish(RuleContext, int, long) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called when rule engine finishes firing 当规则引擎完成触发时调用
- onFinish(RuleContext, int, long) - Method in class cloud.opencode.base.rules.metric.MetricsListener
-
Cleans up ThreadLocal state when execution finishes 执行完成时清理ThreadLocal状态
- onFinish(RuleContext, int, long) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- onStart(RuleContext) - Method in class cloud.opencode.base.rules.listener.LoggingRuleListener
- onStart(RuleContext) - Method in interface cloud.opencode.base.rules.listener.RuleListener
-
Called when rule engine starts firing 当规则引擎开始触发时调用
- onStart(RuleContext) - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
- OpenRules - Class in cloud.opencode.base.rules
-
OpenRules Facade - Unified Entry Point for Rules Engine OpenRules门面 - 规则引擎统一入口
- OpenRulesException - Exception Class in cloud.opencode.base.rules.exception
-
Base Rules Exception for All Rule Engine Errors 所有规则引擎错误的基础异常
- OpenRulesException(OpenRulesException.RuleErrorType, String) - Constructor for exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Constructs a new rules exception with error type and message 使用错误类型和消息构造新的规则异常
- OpenRulesException(String) - Constructor for exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Constructs a new rules exception with message 使用消息构造新的规则异常
- OpenRulesException(String, String, OpenRulesException.RuleErrorType) - Constructor for exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Constructs a new rules exception with full details 使用完整详情构造新的规则异常
- OpenRulesException(String, String, OpenRulesException.RuleErrorType, Throwable) - Constructor for exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Constructs a new rules exception with full details and cause 使用完整详情和原因构造新的规则异常
- OpenRulesException(String, Throwable) - Constructor for exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Constructs a new rules exception with message and cause 使用消息和原因构造新的规则异常
- OpenRulesException.RuleErrorType - Enum Class in cloud.opencode.base.rules.exception
-
Rule Error Type Enumeration 规则错误类型枚举
- or(Condition) - Method in interface cloud.opencode.base.rules.model.Condition
-
Returns a condition that is the logical OR of this and another 返回此条件与另一个条件的逻辑OR
- or(Condition...) - Static method in class cloud.opencode.base.rules.condition.CompositeCondition
-
Creates an OR composite condition 创建OR组合条件
- OR - Enum constant in enum class cloud.opencode.base.rules.condition.CompositeCondition.Operator
-
Logical OR - at least one condition must be true | 逻辑OR - 至少一个条件必须为true
- OrderConflictResolver - Class in cloud.opencode.base.rules.conflict
-
Order Conflict Resolver - Preserves Registration Order 顺序冲突解决器 - 保持注册顺序
- orderResolver() - Static method in class cloud.opencode.base.rules.OpenRules
-
Gets the order-based conflict resolver 获取基于顺序的冲突解决器
- output(String) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds an output column (type defaults to Object) 添加输出列(类型默认为Object)
- output(String, Class) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds an output column 添加输出列
- OUTPUT_ORDER - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Output Order - Return all matches ordered by output values 输出顺序 - 按输出值排序返回所有匹配
- outputs() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns the value of the
outputsrecord component. - outputs(String...) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds multiple output columns 添加多个输出列
P
- PredicateCondition - Class in cloud.opencode.base.rules.condition
-
Predicate Condition - Condition Based on Java Predicate 谓词条件 - 基于Java谓词的条件
- PredicateCondition(Predicate) - Constructor for class cloud.opencode.base.rules.condition.PredicateCondition
-
Creates a predicate condition 创建谓词条件
- priority(int) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Sets the rule priority (lower value = higher priority) 设置规则优先级(值越小优先级越高)
- priority(int) - Method in class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Sets the group priority 设置组优先级
- priority(int) - Method in class cloud.opencode.base.rules.model.RuleGroup.Builder
-
Sets the priority 设置优先级
- PRIORITY - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Priority - Return the row with highest priority 优先级 - 返回优先级最高的行
- PriorityConflictResolver - Class in cloud.opencode.base.rules.conflict
-
Priority Conflict Resolver - Orders Rules by Priority 优先级冲突解决器 - 按优先级排序规则
- priorityResolver() - Static method in class cloud.opencode.base.rules.OpenRules
-
Gets the priority-based conflict resolver 获取基于优先级的冲突解决器
- put(TypedKey, T) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Puts a typed value by typed key 通过类型化键存放类型化值
- put(TypedKey, T) - Method in class cloud.opencode.base.rules.RuleContext
-
Puts a typed value by typed key into variables 通过类型化键将类型化值放入变量中
- put(String, Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Sets a variable value in the context 在上下文中设置变量值
R
- reason() - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Returns the value of the
reasonrecord component. - recordEvaluation(String, long, boolean) - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Records a rule evaluation 记录规则评估
- recordFailure(String) - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Records a rule failure 记录规则失败
- refresh() - Method in interface cloud.opencode.base.rules.spi.RuleProvider
-
Refreshes the rules from the source 从源刷新规则
- register(RuleGroup) - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Registers a rule group 注册规则组
- register(RuleGroup) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- register(RuleGroup) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Registers a rule group 注册规则组
- register(Rule...) - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Registers one or more rules 注册一个或多个规则
- register(Rule...) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- register(Rule...) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Registers one or more rules 注册一个或多个规则
- remove(String) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- remove(String) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Removes a named fact 移除命名事实
- removeAll(Class) - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- removeAll(Class) - Method in interface cloud.opencode.base.rules.model.FactStore
-
Removes all facts of a specific type 移除特定类型的所有事实
- removeListener(RuleListener) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- removeListener(RuleListener) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Removes a rule execution listener 移除规则执行监听器
- reset() - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Resets all metrics 重置所有指标
- reset() - Method in class cloud.opencode.base.rules.trace.TracingRuleListener
-
Clears all state for reuse 清除所有状态以便重用
- reset(String) - Method in class cloud.opencode.base.rules.metric.RuleMetrics
-
Resets metrics for a specific rule 重置特定规则的指标
- resolve(List) - Method in interface cloud.opencode.base.rules.conflict.ConflictResolver
-
Resolves conflicts by ordering the matching rules 通过对匹配规则排序来解决冲突
- resolve(List) - Method in class cloud.opencode.base.rules.conflict.OrderConflictResolver
- resolve(List) - Method in class cloud.opencode.base.rules.conflict.PriorityConflictResolver
- result(String, Object) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a result 添加结果
- results() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
resultsrecord component. - results(Map) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds multiple results 添加多个结果
- row(Object[], Object[]) - Method in class cloud.opencode.base.rules.dsl.DecisionTableBuilder
-
Adds a row to the decision table 向决策表添加行
- rule() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new rule builder 创建新的规则构建器
- rule(String) - Static method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Creates a rule builder with the given name 使用给定名称创建规则构建器
- rule(String) - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a new rule builder with the given name 使用给定名称创建新的规则构建器
- Rule - Interface in cloud.opencode.base.rules
-
Rule Interface - Core Abstraction of Business Rule 规则接口 - 业务规则的核心抽象
- RULE_NOT_FOUND - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Rule not found - 规则未找到
- RULE_ORDER - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Rule Order - Return all matches in rule definition order 规则顺序 - 按规则定义顺序返回所有匹配
- RuleBuilder - Class in cloud.opencode.base.rules.dsl
-
Rule Builder - Fluent DSL for Rule Construction 规则构建器 - 规则构建的流式DSL
- RuleBuilder() - Constructor for class cloud.opencode.base.rules.dsl.RuleBuilder
-
Creates a rule builder with a default name 使用默认名称创建规则构建器
- RuleBuilder(String) - Constructor for class cloud.opencode.base.rules.dsl.RuleBuilder
-
Creates a rule builder with the given name 使用给定名称创建规则构建器
- RuleContext - Class in cloud.opencode.base.rules
-
Rule Context - Manages Facts and Variables During Rule Execution 规则上下文 - 管理规则执行期间的事实和变量
- RuleEngine - Interface in cloud.opencode.base.rules
-
Rule Engine Interface - Manages and Executes Business Rules 规则引擎接口 - 管理和执行业务规则
- RuleEngineBuilder - Class in cloud.opencode.base.rules.dsl
-
Rule Engine Builder - Fluent DSL for Rule Engine Configuration 规则引擎构建器 - 规则引擎配置的流式DSL
- RuleEngineBuilder() - Constructor for class cloud.opencode.base.rules.dsl.RuleEngineBuilder
- RuleError(String, String, Throwable) - Constructor for record class cloud.opencode.base.rules.RuleResult.RuleError
-
Creates an instance of a
RuleErrorrecord class. - RuleExplainer - Class in cloud.opencode.base.rules.explain
-
Rule Explainer - Generates Human-Readable Explanations from Execution Traces 规则解释器 - 从执行轨迹生成人类可读的解释
- RuleExplanation - Record Class in cloud.opencode.base.rules.explain
-
Rule Explanation - Human-Readable Explanation of a Single Rule's Outcome 规则解释 - 单个规则结果的人类可读解释
- RuleExplanation(String, boolean, String) - Constructor for record class cloud.opencode.base.rules.explain.RuleExplanation
-
Canonical constructor with validation 带验证的规范构造函数
- RuleGroup - Class in cloud.opencode.base.rules.model
-
Rule Group - Collection of Related Rules 规则组 - 相关规则的集合
- RuleGroup.Builder - Class in cloud.opencode.base.rules.model
-
Builder for RuleGroup RuleGroup的构建器
- RuleGroupBuilder - Class in cloud.opencode.base.rules.dsl
-
Rule Group Builder - Fluent DSL for Rule Group Construction 规则组构建器 - 规则组构建的流式DSL
- RuleGroupBuilder(String) - Constructor for class cloud.opencode.base.rules.dsl.RuleGroupBuilder
-
Creates a rule group builder with the given name 使用给定名称创建规则组构建器
- RuleListener - Interface in cloud.opencode.base.rules.listener
-
Rule Listener Interface - Observes Rule Execution Events 规则监听器接口 - 观察规则执行事件
- RuleMetrics - Class in cloud.opencode.base.rules.metric
-
Rule Metrics - Thread-Safe Per-Rule Metrics Collector 规则指标 - 线程安全的按规则指标收集器
- RuleMetrics() - Constructor for class cloud.opencode.base.rules.metric.RuleMetrics
- ruleName() - Method in exception class cloud.opencode.base.rules.exception.OpenRulesException
-
Gets the name of the rule that caused the exception 获取导致异常的规则名称
- ruleName() - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Returns the value of the
ruleNamerecord component. - ruleName() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns the value of the
ruleNamerecord component. - ruleName() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns the value of the
ruleNamerecord component. - ruleName() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
ruleNamerecord component. - ruleName() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns the value of the
ruleNamerecord component. - RuleProvider - Interface in cloud.opencode.base.rules.spi
-
Rule Provider SPI - Service Provider Interface for Rule Discovery 规则提供者SPI - 规则发现的服务提供者接口
- RuleResult - Record Class in cloud.opencode.base.rules
-
Rule Result - Immutable Record of Rule Execution Outcome 规则结果 - 规则执行结果的不可变记录
- RuleResult(boolean, List, List, List, Map, Duration, List) - Constructor for record class cloud.opencode.base.rules.RuleResult
-
Creates an instance of a
RuleResultrecord class. - RuleResult.Builder - Class in cloud.opencode.base.rules
-
Builder for RuleResult RuleResult的构建器
- RuleResult.RuleError - Record Class in cloud.opencode.base.rules
-
Rule Error - Details about a rule execution failure 规则错误 - 规则执行失败的详细信息
- ruleScores() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns the value of the
ruleScoresrecord component. - RuleTrace - Record Class in cloud.opencode.base.rules.trace
-
Rule Trace - Records the Execution Trace of a Single Rule 规则轨迹 - 记录单个规则的执行轨迹
- RuleTrace(String, boolean, boolean, Duration, Throwable, boolean) - Constructor for record class cloud.opencode.base.rules.trace.RuleTrace
-
Canonical constructor with validation 带验证的规范构造函数
- ruleTraces() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the value of the
ruleTracesrecord component. - RuleValidator - Class in cloud.opencode.base.rules.validation
-
Rule Validator - Validates a Collection of Rules for Correctness 规则验证器 - 验证规则集合的正确性
S
- score(RuleContext) - Method in interface cloud.opencode.base.rules.score.ScoringRule
-
Computes the score for this rule in the given context 在给定上下文中计算此规则的分数
- score(RuleContext, Collection, AggregationStrategy) - Static method in class cloud.opencode.base.rules.score.ScoringEngine
-
Scores a collection of rules against a context using the given strategy 使用给定策略针对上下文对一组规则进行评分
- ScoreResult - Record Class in cloud.opencode.base.rules.score
-
Score Result - Aggregated Scoring Outcome from a Scoring Engine Run 评分结果 - 评分引擎运行的聚合评分结果
- ScoreResult(double, Map, AggregationStrategy) - Constructor for record class cloud.opencode.base.rules.score.ScoreResult
-
Creates a ScoreResult with a defensive copy of the rule scores map 使用规则分数映射的防御性副本创建ScoreResult
- ScoringEngine - Class in cloud.opencode.base.rules.score
-
Scoring Engine - Evaluates Scoring Rules and Aggregates Results 评分引擎 - 评估评分规则并聚合结果
- ScoringRule - Interface in cloud.opencode.base.rules.score
-
Scoring Rule - Rule That Produces a Numeric Score 评分规则 - 产生数值分数的规则
- setConflictResolver(ConflictResolver) - Method in class cloud.opencode.base.rules.dsl.RuleEngineBuilder
-
Sets the conflict resolver 设置冲突解决器
- setConflictResolver(ConflictResolver) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- setConflictResolver(ConflictResolver) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Sets the conflict resolver 设置冲突解决器
- setHaltCondition(Predicate) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
-
Sets the halt condition for the engine 设置引擎的停止条件
- setResult(String, Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Sets a result value 设置结果值
- severity() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns the value of the
severityrecord component. - SimpleDecisionTable - Class in cloud.opencode.base.rules.decision
-
Simple Decision Table Implementation 简单决策表实现
- SimpleDecisionTable(String, HitPolicy, List, List, List, List) - Constructor for class cloud.opencode.base.rules.decision.SimpleDecisionTable
-
Creates a simple decision table 创建简单决策表
- singleMatch(int, Map) - Static method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Creates a result for a single match 创建单个匹配的结果
- size() - Method in class cloud.opencode.base.rules.model.DefaultFactStore
- size() - Method in interface cloud.opencode.base.rules.model.FactStore
-
Gets the total number of facts 获取事实总数
- size() - Method in class cloud.opencode.base.rules.model.RuleGroup
-
Gets the count of rules in this group 获取此组中的规则数量
- skipped() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns the value of the
skippedrecord component. - skipped(String) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a skipped rule 添加已跳过的规则
- skipped(String) - Static method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Creates a trace for a rule that was skipped (disabled) 创建被跳过(禁用)的规则轨迹
- skippedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of skipped rules 获取已跳过规则的数量
- skippedCount() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the value of the
skippedCountrecord component. - skippedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
skippedRulesrecord component. - strategy() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns the value of the
strategyrecord component. - success() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
successrecord component. - successBuilder() - Static method in record class cloud.opencode.base.rules.RuleResult
-
Creates a success result builder 创建成功结果构建器
- SUM - Enum constant in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Sum all individual scores | 所有分数求和
- summary() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns the value of the
summaryrecord component.
T
- terminal() - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Marks the rule as terminal (stops engine execution when fired) 将规则标记为终止规则(触发时停止引擎执行)
- terminal(boolean) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Sets whether the rule is terminal 设置规则是否为终止规则
- then(Action) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an action object 添加动作对象
- then(Consumer) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds an action using a consumer 使用消费者添加动作
- TIMEOUT - Enum constant in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Timeout error - 超时错误
- topScoringRule() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns the name of the rule with the highest score 返回得分最高的规则名称
- toString() - Method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.rules.engine.DefaultRule
- toString() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns a formatted multi-line string representation 返回格式化的多行字符串表示
- toString() - Method in record class cloud.opencode.base.rules.explain.RuleExplanation
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.key.TypedKey
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.trace.RuleTrace
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns a string representation of this record class.
- totalCount() - Method in record class cloud.opencode.base.rules.explain.Explanation
-
Returns the total number of rules 返回规则的总数
- totalDuration() - Method in record class cloud.opencode.base.rules.trace.ExecutionTrace
-
Returns the value of the
totalDurationrecord component. - totalDurationNanos() - Method in record class cloud.opencode.base.rules.metric.MetricsSnapshot
-
Returns the value of the
totalDurationNanosrecord component. - totalScore() - Method in record class cloud.opencode.base.rules.score.ScoreResult
-
Returns the value of the
totalScorerecord component. - tracingListener() - Static method in class cloud.opencode.base.rules.OpenRules
-
Creates a tracing listener for execution tracing 创建追踪监听器用于执行追踪
- TracingRuleListener - Class in cloud.opencode.base.rules.trace
-
Tracing Rule Listener - Collects Execution Data to Build an ExecutionTrace 追踪规则监听器 - 收集执行数据以构建执行轨迹
- TracingRuleListener() - Constructor for class cloud.opencode.base.rules.trace.TracingRuleListener
- type() - Method in record class cloud.opencode.base.rules.key.TypedKey
-
Returns the value of the
typerecord component. - type() - Method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Returns the value of the
typerecord component. - TypedKey<T> - Record Class in cloud.opencode.base.rules.key
-
Typed Key - Type-Safe Key for Fact and Variable Access 类型化键 - 用于事实和变量访问的类型安全键
- TypedKey(String, Class) - Constructor for record class cloud.opencode.base.rules.key.TypedKey
-
Canonical constructor with validation 带验证的规范构造函数
U
- UNIQUE - Enum constant in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Unique - Only one row can match (error if multiple match) 唯一 - 只能有一行匹配(如果多行匹配则报错)
- unregister(String) - Method in class cloud.opencode.base.rules.engine.DefaultRuleEngine
- unregister(String) - Method in interface cloud.opencode.base.rules.RuleEngine
-
Unregisters a rule by name 按名称注销规则
V
- valid() - Static method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns a valid report with no issues 返回没有问题的有效报告
- validate(Collection) - Static method in class cloud.opencode.base.rules.OpenRules
-
Validates a collection of rules 验证规则集合
- validate(Collection) - Static method in class cloud.opencode.base.rules.validation.RuleValidator
-
Validates a collection of rules and returns a report 验证规则集合并返回报告
- ValidationIssue - Record Class in cloud.opencode.base.rules.validation
-
Validation Issue - Represents a Single Problem Found During Rule Validation 验证问题 - 表示规则验证期间发现的单个问题
- ValidationIssue(ValidationIssue.Severity, ValidationIssue.IssueType, String, String) - Constructor for record class cloud.opencode.base.rules.validation.ValidationIssue
-
Creates an instance of a
ValidationIssuerecord class. - ValidationIssue.IssueType - Enum Class in cloud.opencode.base.rules.validation
-
Type of Validation Issue 验证问题类型
- ValidationIssue.Severity - Enum Class in cloud.opencode.base.rules.validation
-
Severity Level of a Validation Issue 验证问题的严重级别
- ValidationReport - Record Class in cloud.opencode.base.rules.validation
-
Validation Report - Aggregated Result of Rule Set Validation 验证报告 - 规则集验证的聚合结果
- ValidationReport(List) - Constructor for record class cloud.opencode.base.rules.validation.ValidationReport
-
Creates a validation report with a defensive copy of the issues list 使用问题列表的防御性副本创建验证报告
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.condition.CompositeCondition.Operator
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.rules.validation.ValidationIssue.Severity
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.rules.condition.CompositeCondition.Operator
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.rules.decision.HitPolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.rules.exception.OpenRulesException.RuleErrorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.rules.validation.ValidationIssue.IssueType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.rules.validation.ValidationIssue.Severity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Static method in class cloud.opencode.base.rules.OpenRules
-
Gets the library version 获取库版本
W
- warning(ValidationIssue.IssueType, String, String) - Static method in record class cloud.opencode.base.rules.validation.ValidationIssue
-
Creates a WARNING-level validation issue 创建WARNING级别的验证问题
- WARNING - Enum constant in enum class cloud.opencode.base.rules.validation.ValidationIssue.Severity
-
Non-blocking warning for unusual but not invalid configuration | 不寻常但非无效配置的非阻塞性警告
- warnings() - Method in record class cloud.opencode.base.rules.validation.ValidationReport
-
Returns only WARNING-level issues 仅返回WARNING级别的问题
- wasFired(String) - Method in record class cloud.opencode.base.rules.RuleResult
-
Checks if a specific rule was fired 检查特定规则是否被触发
- wasSkipped(String) - Method in record class cloud.opencode.base.rules.RuleResult
-
Checks if a specific rule was skipped 检查特定规则是否被跳过
- weight() - Method in interface cloud.opencode.base.rules.score.ScoringRule
-
Returns the weight of this rule for weighted aggregation 返回此规则用于加权聚合的权重
- WEIGHTED_SUM - Enum constant in enum class cloud.opencode.base.rules.score.AggregationStrategy
-
Sum of (score * weight) for each rule | 每条规则的 (分数 * 权重) 之和
- when(Condition) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds a condition object 添加条件对象
- when(Predicate) - Method in class cloud.opencode.base.rules.dsl.RuleBuilder
-
Adds a condition using a predicate 使用谓词添加条件
- withFacts(Object...) - Static method in class cloud.opencode.base.rules.RuleContext
-
Creates a context with fact objects 使用事实对象创建上下文
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form