Package org.drools.base.rule
Class LogicTransformer
java.lang.Object
org.drools.base.rule.LogicTransformer
LogicTransformation is reponsible for removing redundant nodes and move Or
nodes upwards.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(Not (OR (A B) ) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOrTransformation(GroupElement parent) protected voidfixClonedDeclarations(GroupElement and, Map<String, Type> globals) During the logic transformation, we eventually clone CEs, specially patterns and corresponding declarations.static LogicTransformerprotected booleanprotected GroupElement[]splitOr(GroupElement cloned) static int[]toIntArray(List<Integer> list) transform(GroupElement cloned, Map<String, Type> globals)
-
Constructor Details
-
LogicTransformer
protected LogicTransformer()
-
-
Method Details
-
getInstance
-
transform
public GroupElement[] transform(GroupElement cloned, Map<String, Type> globals) throws InvalidPatternException- Throws:
InvalidPatternException
-
splitOr
-
fixClonedDeclarations
During the logic transformation, we eventually clone CEs, specially patterns and corresponding declarations. So now we need to fix any references to cloned declarations. -
toIntArray
-
processTree
- Throws:
InvalidPatternException
-
applyOrTransformation
- Throws:
InvalidPatternException
-