Interface RuleCompilerContextFactory<T extends RuleCompilerContext>
- All Known Implementing Classes:
DefaultRuleCompilerContextFactory
public interface RuleCompilerContextFactory<T extends RuleCompilerContext>
Implementations of this interface are responsible for creating and destroying instances of
RuleCompilerContext.-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(RuleCompilationContext ruleCompilationContext, AbstractRuleModel rule, String moduleName, RuleIrVariablesGenerator variablesGenerator) Creates a new compiler context and sets it as the current one.
-
Method Details
-
createContext
T createContext(RuleCompilationContext ruleCompilationContext, AbstractRuleModel rule, String moduleName, RuleIrVariablesGenerator variablesGenerator) Creates a new compiler context and sets it as the current one.- Parameters:
ruleCompilationContext- - instance ofRuleCompilationContextrule- - the rule to compilemoduleName- - the rules module namevariablesGenerator- - the variables generator- Returns:
- the new context
-