Package org.evrete.api
Interface LhsBuilder<C extends RuntimeContext<C>>
- All Superinterfaces:
NamedType.Resolver
-
Method Summary
Modifier and TypeMethodDescriptionaddFactDeclaration(String name, Class<?> type) addFactDeclaration(String name, String type) addFactDeclaration(String name, Type<?> type) create()Finishes LHS declaration and returns the rule builderexecute()Terminates the rule builder without RHS and adds the rule to the current contextexecute(Consumer<RhsContext> consumer) Terminates the rule builder with the provided RHS and adds the rule to the current contextdefault LhsBuilder<C>where(Predicate<Object[]> predicate, double complexity, FieldReference... references) default LhsBuilder<C>default LhsBuilder<C>where(Predicate<Object[]> predicate, FieldReference... references) where(EvaluatorHandle... expressions) where(ValuesPredicate predicate, double complexity, String... references) where(ValuesPredicate predicate, double complexity, FieldReference... references) default LhsBuilder<C>where(ValuesPredicate predicate, String... references) default LhsBuilder<C>where(ValuesPredicate predicate, FieldReference... references) Methods inherited from interface org.evrete.api.NamedType.Resolver
resolve
-
Method Details
-
execute
-
setRhs
-
create
RuleBuilder<C> create()Finishes LHS declaration and returns the rule builder
- Returns:
- rule builder
-
execute
C execute()Terminates the rule builder without RHS and adds the rule to the current context
- Returns:
- context
-
execute
Terminates the rule builder with the provided RHS and adds the rule to the current context
- Parameters:
consumer- RHS- Returns:
- context
-
where
-
where
-
where
-
where
-
where
-
where
-
where
-
where
-
where
-
where
-
where
-
addFactDeclaration
-
addFactDeclaration
-
addFactDeclaration
-