Interface LiteralSourceCompiler

All Superinterfaces:
Comparable<OrderedServiceProvider>, OrderedServiceProvider

public interface LiteralSourceCompiler extends OrderedServiceProvider
An interface that represents a Service Provider Interface (SPI) for compiling rule's literal sources.
  • 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 data
      R - 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 occurs
      sources - the collection of source data to compile
      Returns:
      a collection of compiled rule sources
      Throws:
      CompilationException - if any compilation error occurs