public interface RuleCompilerContext
| Modifier and Type | Method and Description |
|---|---|
void |
addProblem(RuleCompilerProblem problem)
Adds a problem arose during compilation process to the list.
|
RuleIrLocalVariablesContainer |
createLocalContainer()
A shortcut to
RuleIrVariablesGenerator.createLocalContainer(). |
java.lang.String |
generateLocalVariable(RuleIrLocalVariablesContainer container,
java.lang.Class<?> type)
|
java.lang.String |
generateVariable(java.lang.Class<?> type)
A shortcut to
RuleIrVariablesGenerator.generateVariable(Class). |
java.util.Map<java.lang.String,RuleActionDefinitionData> |
getActionDefinitions()
Returns action definitions for rule
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns a mutable
Map that can be used to store attributes associated with this
RuleCompilerContext. |
java.util.Map<java.lang.String,RuleConditionDefinitionData> |
getConditionDefinitions()
Returns condition definitions for rule
|
java.util.List<java.lang.Exception> |
getFailureExceptions()
Returns all failure causing exceptions for this
RuleCompilerContext. |
java.lang.String |
getModuleName()
Returns the rules module name.
|
java.util.List<RuleCompilerProblem> |
getProblems()
Returns all problems arose during compilation process.
|
AbstractRuleModel |
getRule()
Returns the rule.
|
RuleCompilationContext |
getRuleCompilationContext()
get Rules compilation context for a given compilation
|
java.util.List<RuleConditionData> |
getRuleConditions()
Returns rule conditions for rule
|
java.util.List<RuleParameterData> |
getRuleParameters()
Returns the rule parameters.
|
long |
getRuleVersion()
Returns the rule version.
|
RuleIrVariablesGenerator |
getVariablesGenerator()
Returns the variables generator valid for this compiler context.
|
void |
setRuleVersion(long version)
Provides means of setting engine version of the rule.
|
AbstractRuleModel getRule()
long getRuleVersion()
void setRuleVersion(long version)
version - - engine rule versionjava.lang.String getModuleName()
java.util.List<RuleParameterData> getRuleParameters()
RuleIrVariablesGenerator getVariablesGenerator()
java.lang.String generateVariable(java.lang.Class<?> type)
RuleIrVariablesGenerator.generateVariable(Class).type - - the typeRuleIrLocalVariablesContainer createLocalContainer()
RuleIrVariablesGenerator.createLocalContainer().java.lang.String generateLocalVariable(RuleIrLocalVariablesContainer container, java.lang.Class<?> type)
type - - the typejava.util.Map<java.lang.String,java.lang.Object> getAttributes()
Map that can be used to store attributes associated with this
RuleCompilerContext.java.util.List<java.lang.Exception> getFailureExceptions()
RuleCompilerContext.java.util.List<RuleCompilerProblem> getProblems()
void addProblem(RuleCompilerProblem problem)
problem - java.util.Map<java.lang.String,RuleConditionDefinitionData> getConditionDefinitions()
java.util.Map<java.lang.String,RuleActionDefinitionData> getActionDefinitions()
java.util.List<RuleConditionData> getRuleConditions()
RuleCompilationContext getRuleCompilationContext()
RuleCompilationContextCopyright © 2018 SAP SE. All Rights Reserved.