- All Superinterfaces:
Comparable<OrderedServiceProvider>,OrderedServiceProvider
An interface that represents a Service Provider Interface (SPI) for compiling rule's literal sources.
-
Method Summary
Modifier and TypeMethodDescription<S extends RuleLiteralData<R>,R extends Rule>
Collection<RuleCompiledSources<S,R>> compile(RuntimeContext<?> context, Collection<S> sources) Compiles a collection of rule literal sources into a collection of compiled rule sources.Methods inherited from interface org.evrete.api.OrderedServiceProvider
compareTo, sortOrder
-
Method Details
-
compile
<S extends RuleLiteralData<R>,R extends Rule> Collection<RuleCompiledSources<S,R>> compile(RuntimeContext<?> context, Collection<S> sources) throws CompilationException Compiles a collection of rule literal sources into a collection of compiled rule sources.- Type Parameters:
S- the type of source data, which is a subtype of RuleLiteralData containing rule dataR- the type of rule, which is a subtype of Rule that the source data is associated with- Parameters:
context- the runtime context in which the compilation occurssources- the collection of source data to compile- Returns:
- a collection of compiled rule sources
- Throws:
CompilationException- if any compilation error occurs
-