Package EDU.purdue.cs.bloat.trans
Class NodeComparator
- java.lang.Object
-
- EDU.purdue.cs.bloat.trans.NodeComparator
-
public class NodeComparator extends java.lang.ObjectNodeComparator is a class used to differentiate nodes in an expression tree.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUG
-
Constructor Summary
Constructors Constructor Description NodeComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(Node v, Node w)Determines whether or not two Nodes are equal.static inthashCode(Node node)Computes a hash code for a given Node based upon its type.
-
-
-
Method Detail
-
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.
-
-