public static class MvelConstraint.PlainIndexEvaluator extends Object implements IndexEvaluator
Constructor and Description |
---|
MvelConstraint.PlainIndexEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(InternalWorkingMemory workingMemory,
InternalReadAccessor extractor1,
Object object1,
InternalReadAccessor extractor2,
Object object2)
Evaluates the expression using the provided parameters.
|
public boolean evaluate(InternalWorkingMemory workingMemory, InternalReadAccessor extractor1, Object object1, InternalReadAccessor extractor2, Object object2)
IndexEvaluator
evaluate
in interface IndexEvaluator
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.Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.