Module org.evrete.core
Package org.evrete.api.builders
Interface RuleSetBuilder<C extends RuntimeContext<C>>
- Type Parameters:
C- Represents the type of the RuntimeContext.
- All Superinterfaces:
Environment,FluentEnvironment<RuleSetBuilder<C>>
public interface RuleSetBuilder<C extends RuntimeContext<C>>
extends FluentEnvironment<RuleSetBuilder<C>>
`RuleSetBuilder` is an interface intended for building and appending rules to the current runtime context.
-
Method Summary
Methods inherited from interface org.evrete.api.Environment
get, get, getPropertyNamesMethods inherited from interface org.evrete.api.FluentEnvironment
set
-
Method Details
-
newRule
Creates a new rule with the provided name.- Parameters:
name- rule name- Returns:
- a new rule builder
-
newRule
RuleBuilder<C> newRule()Creates a new unnamed rule.- Returns:
- a new rule builder
-
build
C build()Builds and appends previously created rules to the current context.
- Returns:
- the current context after appending new rules
-
getContext
C getContext()Returns the builder's context.
- Returns:
- the current context
-
getClassLoader
ClassLoader getClassLoader()Returns the currentClassLoaderassociated with this builder. By default, each builder inherits the class loader from thegetContext()instance.- Returns:
- The current
ClassLoader.
-