public interface IndexEvaluator extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor leftExtractor,
Object left,
InternalReadAccessor rightExtractor,
Object right)
Evaluates the expression using the provided parameters.
|
boolean |
evaluate(InternalWorkingMemory workingMemory,
Object value1,
InternalReadAccessor extractor2,
Object object2) |
boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor leftExtractor, Object left, InternalReadAccessor rightExtractor, Object right)
workingMemory
- The current working memoryleftExtractor
- The extractor to read the left value. In the above example,
the "$someName" variable value.left
- The source object from where the value of the variable is
extracted.rightExtractor
- The extractor to read the right value. In the above example,
the "name" attribute 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.boolean evaluate(InternalWorkingMemory workingMemory, Object value1, InternalReadAccessor extractor2, Object object2)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.