Class ConstraintUtil
java.lang.Object
org.drools.model.codegen.execmodel.generator.ConstraintUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DrlxParseResultnormalizeConstraint(DrlxParseResult drlxParseResult) Swap left and right operands in a constraint when a fact property is located on the right side.
-
Field Details
-
GREATER_THAN_PREFIX
- See Also:
-
GREATER_OR_EQUAL_PREFIX
- See Also:
-
LESS_THAN_PREFIX
- See Also:
-
LESS_OR_EQUAL_PREFIX
- See Also:
-
-
Method Details
-
normalizeConstraint
Swap left and right operands in a constraint when a fact property is located on the right side. e.g. Person(20 < age) should be normalized to Person(age > 20)- Parameters:
drlxParseResult-- Returns:
- Normalized
DrlxParseResult
-