当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
Evaluator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.spi
Interface Evaluator
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- BaseEvaluator, BaseMemberOfEvaluator, BaseNotMemberOfEvaluator
public interface Evaluator
- extends Serializable
getValueType
ValueType getValueType()
getOperator
Operator getOperator()
evaluate
boolean evaluate(Extractor extractor,
Object object1,
FieldValue value)
- This method will extract the value from the object1 using the
extractor and compare it with the object2.
- Parameters:
extractor
- The extractor used to get the source value from the objectobject1
- The source object to evaluateobject2
- The actual value to compare to
- Returns:
- Returns true if evaluation is successfull. false otherwise.
evaluate
boolean evaluate(Extractor leftExtractor,
Object left,
Extractor rightExtractor,
Object right)
evaluateCachedLeft
boolean evaluateCachedLeft(VariableRestriction.VariableContextEntry context,
Object object1)
evaluateCachedRight
boolean evaluateCachedRight(VariableRestriction.VariableContextEntry context,
Object object2)
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.