Class BooleanSimplifier

  • All Implemented Interfaces:
    PredicateProcessor

    public class BooleanSimplifier
    extends java.lang.Object
    implements PredicateProcessor
    Simplifies a predicate by collapsing TRUE/FALSE-children into their parents. E.g. if an AND node has a FALSE child, the entire node is replaced by FALSE. Replaces single-child AND/OR-nodes with the child.
    Author:
    Magnar Nedland, bjorncs