harpoon.Backend.Maps
Class ClassDepthMap
java.lang.Object
harpoon.Backend.Maps.ClassDepthMap
- Direct Known Subclasses:
- DefaultClassDepthMap
public abstract class ClassDepthMap
- extends Object
A ClassDepthMap
reports the nesting depth of a given
class, with java.lang.Object
given nesting depth 0.
This is used to layout the display structure for fast implementation
of instanceof
.
- Version:
- $Id: ClassDepthMap.java,v 1.2 2002/02/25 21:01:55 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
Method Summary |
abstract int |
classDepth(HClass hc)
Return the nesting depth of the given class. |
abstract int |
maxDepth()
Returns the maximum nesting depth of any class (dependent on a
given context). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDepthMap
public ClassDepthMap()
classDepth
public abstract int classDepth(HClass hc)
- Return the nesting depth of the given class. Not valid for
interface classes.
maxDepth
public abstract int maxDepth()
- Returns the maximum nesting depth of any class (dependent on a
given context).