Class ConstraintUtil
- java.lang.Object
-
- org.drools.modelcompiler.builder.generator.ConstraintUtil
-
public class ConstraintUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DrlxParseResultnormalizeConstraint(DrlxParseResult drlxParseResult)Swap left and right operands in a constraint when a fact property is located on the right side.
-
-
-
Method Detail
-
normalizeConstraint
public static DrlxParseResult normalizeConstraint(DrlxParseResult drlxParseResult)
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
-
-