public static class MvelConstraint.PlainIndexEvaluator extends Object implements IndexEvaluator
Constructor and Description |
---|
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.
|
boolean |
evaluate(InternalWorkingMemory workingMemory,
Object value1,
InternalReadAccessor extractor2,
Object object2) |
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.public boolean evaluate(InternalWorkingMemory workingMemory, Object value1, InternalReadAccessor extractor2, Object object2)
evaluate
in interface IndexEvaluator
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.