harpoon.Backend.Maps
Class MethodMap

java.lang.Object
  extended by harpoon.Backend.Maps.MethodMap
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClassMethodMap, InterfaceMethodMap

public abstract class MethodMap
extends Object
implements Serializable

A MethodMap assigns an ordering to the methods in a class. Typically a separate MethodMap will be used for class and interface methods. Note that a MethodMap does not specify a direct offset, since the size of each method pointer will be machine-dependent and the start of the method table may be offset from the class descriptor pointer. The function of an OffsetMap is to take the orderings specified by a pair of MethodMaps (one for single-inheritance classes, one for interfaces) and layout a class descriptor table from it, computing appropriate byte offsets to the various method pointers.

Version:
$Id: MethodMap.java,v 1.3 2003/04/19 01:03:54 salcianu Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Constructor Summary
MethodMap()
           
 
Method Summary
abstract  int methodOrder(HMethod hm)
          Return an ordering of the given method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMap

public MethodMap()
Method Detail

methodOrder

public abstract int methodOrder(HMethod hm)
Return an ordering of the given method.