public interface ILogicalOperator extends IAddon
Modifier and Type | Method and Description |
---|---|
ILogicalOperator |
clone()
Clones the Operator.
|
void |
compile(ICompilationContext ctxt,
Iterable<ICondition> conditions)
For additional validations, specific to this operator.
|
boolean |
evaluate(IExecutionContext ctxt,
Iterable<ICondition> conditions)
Evaluate result for this operator.
|
String |
getRepresentation()
String representation for human read
|
int |
getWeight()
Operator with higher weight has priority.
|
boolean |
isKeepConditionsOrder()
Tells if condition order is important.
|
boolean |
isMergePossible()
Tells if two sets of conditions which should be evaluated with the same operator could be merged.
|
getImplementationId, getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
void compile(ICompilationContext ctxt, Iterable<ICondition> conditions) throws MRuleValidationException
conditions
- If known, conditions to iterate on. If unknown, null value is handled.MRuleValidationException
boolean evaluate(IExecutionContext ctxt, Iterable<ICondition> conditions) throws MConditionEvaluationException
MConditionEvaluationException
int getWeight()
Condition1 OR Condition2 AND Condition3
boolean isKeepConditionsOrder()
boolean isMergePossible()
String getRepresentation()
ILogicalOperator clone()
clone
in interface IAddon
clone
in interface IMRulesObject