public interface IMathOperator extends IAddon
Modifier and Type | Method and Description |
---|---|
IMathOperator |
clone()
Clones the Operator.
|
void |
compile(ICompilationContext ctxt,
IReadAccessor left,
IReadAccessor right)
For additional validations, specific to this operator.
|
Number |
compute(IExecutionContext ctxt,
IReadAccessor left,
IReadAccessor right)
Evaluate result for this operator.
|
String |
getRepresentation()
String representation for human read
|
int |
getWeight()
Operator with higher weight has priority.
|
getImplementationId, getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
void compile(ICompilationContext ctxt, IReadAccessor left, IReadAccessor right) throws MRuleValidationException
left
- If known, left operand. If unknown, null value is handled.right
- If known, right operand. If unknown, null value is handled.MRuleValidationException
Number compute(IExecutionContext ctxt, IReadAccessor left, IReadAccessor right) throws MAccessorException
MAccessorException
int getWeight()
n1 + n2 / n3
String getRepresentation()
IMathOperator clone()
clone
in interface IAddon
clone
in interface IMRulesObject