public interface IEvaluationOperator extends IAddon
Modifier and Type | Method and Description |
---|---|
IEvaluationOperator |
clone()
Clones the Operator.
|
void |
compile(ICompilationContext ctxt,
IEvaluationCondition condition)
For additional validations, specific to this operator.
|
boolean |
evaluate(IExecutionContext ctxt,
IEvaluationCondition condition)
Evaluate result for this operator.
|
IEvaluationOperator |
getInverted()
Returns a new instance instance of Evaluation operator, allowing to invert the operands.
|
IEvaluationOperator |
getNegated()
Returns a new instance instance of Evaluation operator, allowing to negate the operands.
|
Class<?> |
getReferenceExpectedType(Class<?> srcType,
Class<?> srcGenericType)
If any, tells reference expected type, i.e. if reference is not assignable to this type, the operator will not work.
|
Class<?> |
getReferencePreferredType(Class<?> srcType,
Class<?> srcGenericType)
If any, tells reference preferred type, i.e. if reference is assignable to this type, the operator will work better than if not.
|
String |
getRepresentation()
String representation for human read
|
Class<?> |
getSourceExpectedType()
If any, tells source expected type.
|
getImplementationId, getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
void compile(ICompilationContext ctxt, IEvaluationCondition condition) throws MRuleValidationException
MRuleValidationException
boolean evaluate(IExecutionContext ctxt, IEvaluationCondition condition) throws MConditionEvaluationException
MConditionEvaluationException
String getRepresentation()
Class<?> getSourceExpectedType()
Class<?> getReferenceExpectedType(Class<?> srcType, Class<?> srcGenericType)
srcType
- If known, the source accessor type should be provided to make better prevision.srcGenericType
- If known, the source accessor generic type should be provided to make better prevision.Class<?> getReferencePreferredType(Class<?> srcType, Class<?> srcGenericType)
srcType
- If known, the source accessor type should be provided to make better prevision.srcGenericType
- If known, the source accessor generic type should be provided to make better prevision.IEvaluationOperator getInverted()
IEvaluationOperator getNegated()
IEvaluationOperator clone()
clone
in interface IAddon
clone
in interface IMRulesObject