harpoon.Backend.Analysis
Class PackedClassFieldMap
java.lang.Object
|
+--harpoon.Backend.Maps.FieldMap
|
+--harpoon.Backend.Analysis.PackedClassFieldMap
- public abstract class PackedClassFieldMap
- extends FieldMap
PackedClassFieldMap
is a FieldMap
for
non-static fields of a class which attempts to maximally fill holes
in the data structure (even if this means commingling a subclass'
fields with those of its superclass) in order to minimize the
space required by objects.
- Version:
- $Id: PackedClassFieldMap.java,v 1.3 2002/02/26 22:43:06 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
Method Summary |
List |
fieldList(HClass hc)
Return an unmodifiable List over all appropriate fields in the given
class, in order from smallest to largest offset. |
int |
fieldOffset(HField hf)
Return an offset to the given field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackedClassFieldMap
public PackedClassFieldMap()
- Creates a
PackedClassFieldMap
.
fieldOffset
public int fieldOffset(HField hf)
- Return an offset to the given field.
- Specified by:
fieldOffset
in class FieldMap
fieldList
public List fieldList(HClass hc)
- Return an unmodifiable List over all appropriate fields in the given
class, in order from smallest to largest offset.
- Specified by:
fieldList
in class FieldMap