at.dms.kjc.iterator
Class Memoizer

java.lang.Object
  extended by at.dms.kjc.iterator.Memoizer

public class Memoizer
extends Object

In this implementation, an object is memoized iff it is immutable.


Method Summary
protected static boolean compareStructure(Object o1, Object o2)
          Returns whether or not and are structurally equal, in the sense of having the same field structure with all the leaf nodes (primitives) being identical.
static boolean isPrimitiveWrapper(Object o)
          Returns whether or not is a wrapper for a primitive type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compareStructure

protected static boolean compareStructure(Object o1,
                                          Object o2)
Returns whether or not and are structurally equal, in the sense of having the same field structure with all the leaf nodes (primitives) being identical.


isPrimitiveWrapper

public static boolean isPrimitiveWrapper(Object o)
Returns whether or not is a wrapper for a primitive type