| java.lang.Object EDU.purdue.cs.bloat.trans.NodeComparator
NodeComparator | public class NodeComparator (Code) | | NodeComparator is a class used to differentiate nodes in an expression tree.
|
Field Summary | |
public static boolean | DEBUG |
Method Summary | |
public static boolean | equals(Node v, Node w) Determines whether or not two Nodes are equal. | public static int | hashCode(Node node) Computes a hash code for a given Node based upon its type. |
DEBUG | public static boolean DEBUG(Code) | | |
equals | public static boolean equals(Node v, Node w)(Code) | | Determines whether or not two Nodes are equal.
|
hashCode | public static int hashCode(Node node)(Code) | | 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.
|
|
|