当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
Evaluator - JBoss RULES 3.0.6 API 英文版文档
org.drools.spi
Interface Evaluator
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- BaseEvaluator
public interface Evaluator
- extends java.io.Serializable
Method Summary |
boolean |
evaluate(java.lang.Object object1,
java.lang.Object object2)
This method will apply the evaluator on the objects. |
int |
getOperator()
|
int |
getType()
|
EQUAL
static final int EQUAL
- See Also:
- Constant Field Values
NOT_EQUAL
static final int NOT_EQUAL
- See Also:
- Constant Field Values
LESS
static final int LESS
- See Also:
- Constant Field Values
LESS_OR_EQUAL
static final int LESS_OR_EQUAL
- See Also:
- Constant Field Values
GREATER
static final int GREATER
- See Also:
- Constant Field Values
GREATER_OR_EQUAL
static final int GREATER_OR_EQUAL
- See Also:
- Constant Field Values
CONTAINS
static final int CONTAINS
- See Also:
- Constant Field Values
MATCHES
static final int MATCHES
- See Also:
- Constant Field Values
EXCLUDES
static final int EXCLUDES
- See Also:
- Constant Field Values
CHAR_TYPE
static final int CHAR_TYPE
- See Also:
- Constant Field Values
BYTE_TYPE
static final int BYTE_TYPE
- See Also:
- Constant Field Values
SHORT_TYPE
static final int SHORT_TYPE
- See Also:
- Constant Field Values
INTEGER_TYPE
static final int INTEGER_TYPE
- See Also:
- Constant Field Values
LONG_TYPE
static final int LONG_TYPE
- See Also:
- Constant Field Values
FLOAT_TYPE
static final int FLOAT_TYPE
- See Also:
- Constant Field Values
DOUBLE_TYPE
static final int DOUBLE_TYPE
- See Also:
- Constant Field Values
BOOLEAN_TYPE
static final int BOOLEAN_TYPE
- See Also:
- Constant Field Values
STRING_TYPE
static final int STRING_TYPE
- See Also:
- Constant Field Values
DATE_TYPE
static final int DATE_TYPE
- See Also:
- Constant Field Values
ARRAY_TYPE
static final int ARRAY_TYPE
- See Also:
- Constant Field Values
OBJECT_TYPE
static final int OBJECT_TYPE
- See Also:
- Constant Field Values
NULL_TYPE
static final int NULL_TYPE
- See Also:
- Constant Field Values
getType
int getType()
getOperator
int getOperator()
evaluate
boolean evaluate(java.lang.Object object1,
java.lang.Object object2)
- This method will apply the evaluator on the objects.
Typically, they follow this form:
Fact(object1 operator object2)
Where operator selects the appropraite concrete evaluator, and object1, and object2
are parameters to this method.
So Person(age < 42) will have object1==age field (of the Person fact object)
and "42" will be the object2 value.