public class DefaultRuleCompilerContextFactory extends Object implements RuleCompilerContextFactory<DefaultRuleCompilerContext>
RuleCompilerContextFactory.| Constructor and Description |
|---|
DefaultRuleCompilerContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
DefaultRuleCompilerContext |
createContext(AbstractRuleModel rule,
RuleIrVariablesGenerator variablesGenerator)
Creates a new compiler context and sets it as the current one.
|
void |
destroyContext()
Destroys the current context.
|
DefaultRuleCompilerContext |
getContext()
Returns the current context.
|
RuleActionsRegistry |
getRuleActionsRegistry() |
RuleConditionsRegistry |
getRuleConditionsRegistry() |
protected void |
populateDefinitionsForRule(AbstractRuleModel rule,
DefaultRuleCompilerContext context) |
void |
setRuleActionsRegistry(RuleActionsRegistry ruleActionsRegistry) |
void |
setRuleConditionsRegistry(RuleConditionsRegistry ruleConditionsRegistry) |
public DefaultRuleCompilerContext createContext(AbstractRuleModel rule, RuleIrVariablesGenerator variablesGenerator)
RuleCompilerContextFactorycreateContext in interface RuleCompilerContextFactory<DefaultRuleCompilerContext>rule - - the rule to compilevariablesGenerator - - the variables generatorprotected void populateDefinitionsForRule(AbstractRuleModel rule, DefaultRuleCompilerContext context)
public DefaultRuleCompilerContext getContext()
RuleCompilerContextFactorygetContext in interface RuleCompilerContextFactory<DefaultRuleCompilerContext>public void destroyContext()
throws RuleCompilerException
RuleCompilerContextFactorydestroyContext in interface RuleCompilerContextFactory<DefaultRuleCompilerContext>RuleCompilerException - if an error occurs during the rule compilationpublic RuleConditionsRegistry getRuleConditionsRegistry()
public void setRuleConditionsRegistry(RuleConditionsRegistry ruleConditionsRegistry)
public RuleActionsRegistry getRuleActionsRegistry()
public void setRuleActionsRegistry(RuleActionsRegistry ruleActionsRegistry)
Copyright © 2017 SAP SE. All Rights Reserved.