当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
BaseMemberOfEvaluator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.base.evaluators
Class BaseMemberOfEvaluator
java.lang.Object
org.drools.base.BaseEvaluator
org.drools.base.evaluators.BaseMemberOfEvaluator
- All Implemented Interfaces:
- Serializable, Evaluator
public abstract class BaseMemberOfEvaluator
- extends BaseEvaluator
This is a base class for MemberOf Evaluators
- Author:
- etirelli
- See Also:
- Serialized Form
BaseMemberOfEvaluator
public BaseMemberOfEvaluator(ValueType type,
Operator operator)
evaluate
public boolean evaluate(Extractor extractor,
Object object1,
FieldValue object2)
- Description copied from interface:
Evaluator
- 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 evaluate
- Returns:
- Returns true if evaluation is successfull. false otherwise.
evaluateCachedRight
public boolean evaluateCachedRight(VariableRestriction.VariableContextEntry context,
Object left)
evaluateCachedLeft
public boolean evaluateCachedLeft(VariableRestriction.VariableContextEntry context,
Object right)
evaluate
public boolean evaluate(Extractor extractor1,
Object object1,
Extractor extractor2,
Object object2)
toString
public abstract String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.