Class NodeComparator

java.lang.Object
EDU.purdue.cs.bloat.trans.NodeComparator

public class NodeComparator extends Object
NodeComparator is a class used to differentiate nodes in an expression tree.
  • Field Details

    • DEBUG

      public static boolean DEBUG
  • Constructor Details

    • NodeComparator

      public NodeComparator()
  • Method Details

    • equals

      public static boolean equals(Node v, Node w)
      Determines whether or not two Nodes are equal.
    • hashCode

      public static int hashCode(Node node)
      Computes a hash code for a given Node based upon its type. The hash code of nodes that are composed of other nodes are based upon their composits.