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 在规则评估后调用
- 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 在规则成功执行后调用
- 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) 任意 - 返回任意匹配的行(所有匹配必须产生相同输出)
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 在规则评估前调用
- 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. - 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.listener - package cloud.opencode.base.rules.listener
-
Rule Listeners - Execution Monitoring 规则监听器 - 执行监控
- cloud.opencode.base.rules.model - package cloud.opencode.base.rules.model
-
Rule Model - Core Model Classes for Rules 规则模型 - 规则的核心模型类
- cloud.opencode.base.rules.spi - package cloud.opencode.base.rules.spi
-
Rule SPI - Service Provider Interfaces 规则SPI - 服务提供者接口
- 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 - 条件评估错误
- 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(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 创建默认规则
- 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 设置描述
E
- 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.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.
- errors() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
errorsrecord component. - 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
- 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 使用给定上下文执行规则动作
- 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 设置执行时间
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 事实存储接口 - 管理规则上下文中的事实
- failed(String, String, Throwable) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a failed rule 添加已失败的规则
- failedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of failed rules 获取已失败规则的数量
- failedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
failedRulesrecord component. - 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 触发特定分组中所有匹配的规则
- fired(String) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a fired rule 添加已触发的规则
- firedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of fired rules 获取已触发规则的数量
- firedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
firedRulesrecord component. - 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 只触发第一个匹配的规则
- 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(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 获取特定类型的所有事实
- 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
- 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 获取特定分组中的规则
- 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
- 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 检查是否有规则被触发
- 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.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.
- 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 检查规则是否已注册
- 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 检查此提供者是否启用
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 获取匹配行的数量
- 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. - message() - Method in record class cloud.opencode.base.rules.RuleResult.RuleError
-
Returns the value of the
messagerecord component. - multipleMatches(List, List) - Static method in record class cloud.opencode.base.rules.decision.DecisionResult
-
Creates a result for multiple matches 创建多个匹配的结果
N
- 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 返回此条件的逻辑否定
- 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 - 否定第一个条件
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, 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(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 当规则执行失败时调用
- 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 当规则引擎完成触发时调用
- 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 当规则引擎开始触发时调用
- 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(String, Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Sets a variable value in the context 在上下文中设置变量值
R
- 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 移除规则执行监听器
- 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. - 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 规则监听器接口 - 观察规则执行事件
- 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.RuleResult.RuleError
-
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 规则错误 - 规则执行失败的详细信息
S
- 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 设置冲突解决器
- setResult(String, Object) - Method in class cloud.opencode.base.rules.RuleContext
-
Sets a result value 设置结果值
- 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(String) - Method in class cloud.opencode.base.rules.RuleResult.Builder
-
Adds a skipped rule 添加已跳过的规则
- skippedCount() - Method in record class cloud.opencode.base.rules.RuleResult
-
Gets the count of skipped rules 获取已跳过规则的数量
- skippedRules() - Method in record class cloud.opencode.base.rules.RuleResult
-
Returns the value of the
skippedRulesrecord 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 创建成功结果构建器
T
- 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 - 超时错误
- 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.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.
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
- 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.
- 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.
- version() - Static method in class cloud.opencode.base.rules.OpenRules
-
Gets the library version 获取库版本
W
- 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 检查特定规则是否被跳过
- 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