|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.base.BaseEvaluator
org.drools.base.evaluators.SetEvaluatorsDefinition.BaseNotMemberOfEvaluator
public abstract static class SetEvaluatorsDefinition.BaseNotMemberOfEvaluator
Constructor Summary | |
---|---|
SetEvaluatorsDefinition.BaseNotMemberOfEvaluator(ValueType type,
Operator operator)
|
Method Summary | |
---|---|
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor extractor,
Object object1,
FieldValue object2)
Evaluates the expression using the provided parameters. |
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor extractor1,
Object object1,
InternalReadAccessor extractor2,
Object object2)
Evaluates the expression using the provided parameters. |
boolean |
evaluateCachedLeft(InternalWorkingMemory workingMemory,
VariableRestriction.VariableContextEntry context,
Object right)
Evaluates the expression using the provided parameters. |
boolean |
evaluateCachedRight(InternalWorkingMemory workingMemory,
VariableRestriction.VariableContextEntry context,
Object 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()
|
Methods inherited from class org.drools.base.BaseEvaluator |
---|
equals, getInterval, getOperator, getValueType, hashCode, isTemporal, prepareLeftObject, prepareRightObject, readExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetEvaluatorsDefinition.BaseNotMemberOfEvaluator(ValueType type, Operator operator)
Method Detail |
---|
public ValueType getCoercedValueType()
Evaluator
getCoercedValueType
in class BaseEvaluator
public boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor extractor, Object object1, FieldValue object2)
Evaluator
workingMemory
- The current working memoryextractor
- The extractor used to get the field value from the objectobject1
- The source object to evaluate, i.e., the factobject2
- The actual value to compare to, i.e., the constant value.
public boolean evaluateCachedRight(InternalWorkingMemory workingMemory, VariableRestriction.VariableContextEntry context, Object left)
Evaluator
workingMemory
- 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, Object right)
Evaluator
workingMemory
- 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, Object object1, InternalReadAccessor extractor2, Object object2)
Evaluator
workingMemory
- The current working memoryextractor1
- The extractor to read the left value. In the above example,
the "$someName" variable value.object1
- 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.object2
- 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 BaseEvaluator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |