public abstract static class SetEvaluatorsDefinition.BaseNotMemberOfEvaluator extends BaseEvaluator
| Constructor and Description |
|---|
BaseNotMemberOfEvaluator(ValueType type,
Operator operator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor extractor,
InternalFactHandle handle1,
FieldValue fieldValue)
Evaluates the expression using the provided parameters.
|
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor extractor1,
InternalFactHandle handle1,
InternalReadAccessor extractor2,
InternalFactHandle handle2)
Evaluates the expression using the provided parameters.
|
boolean |
evaluateCachedLeft(InternalWorkingMemory workingMemory,
VariableRestriction.VariableContextEntry context,
InternalFactHandle right)
Evaluates the expression using the provided parameters.
|
boolean |
evaluateCachedRight(InternalWorkingMemory workingMemory,
VariableRestriction.VariableContextEntry context,
InternalFactHandle left)
Evaluates the expression using the provided parameters.
|
ValueType |
getCoercedValueType()
Returns the value type this evaluator will coerce
operands to, during evaluation.
|
abstract String |
toString() |
equals, getInterval, getOperator, getValueType, hashCode, isTemporal, readExternal, writeExternalpublic ValueType getCoercedValueType()
EvaluatorgetCoercedValueType in class BaseEvaluatorpublic boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor extractor, InternalFactHandle handle1, FieldValue fieldValue)
EvaluatorworkingMemory - The current working memoryextractor - The extractor used to get the field value from the objecthandle1 - The source object to evaluate, i.e., the factfieldValue - The actual value to compare to, i.e., the constant value.public boolean evaluateCachedRight(InternalWorkingMemory workingMemory, VariableRestriction.VariableContextEntry context, InternalFactHandle left)
EvaluatorworkingMemory - The current working memorycontext - The previously cached context, including the right value
and the extractor for the left value.left - The left object, from where to extract the bound variable.
In the above example, that is the "$someName" variable value.public boolean evaluateCachedLeft(InternalWorkingMemory workingMemory, VariableRestriction.VariableContextEntry context, InternalFactHandle right)
EvaluatorworkingMemory - The current working memorycontext - The previously cached context, including the left value
and the extractor for the right value.right - The right object, from where to extract the value. In the
above example, that is the "Person" instance from where to
extract the "name" attribute.public boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor extractor1, InternalFactHandle handle1, InternalReadAccessor extractor2, InternalFactHandle handle2)
EvaluatorworkingMemory - The current working memoryextractor1 - The extractor to read the left value. In the above example,
the "$someName" variable value.handle1 - The source object from where the value of the variable is
extracted.extractor2 - The extractor to read the right value. In the above example,
the "name" attribute value.handle2 - The right object from where to extract the value. In the
above example, that is the "Person" instance from where to
extract the "name" attribute.public abstract String toString()
toString in class BaseEvaluatorCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.