harpoon.Backend.Analysis
Class SortedClassFieldMap
java.lang.Object
|
+--harpoon.Backend.Maps.FieldMap
|
+--harpoon.Backend.Analysis.ClassFieldMap
|
+--harpoon.Backend.Analysis.SortedClassFieldMap
- public abstract class SortedClassFieldMap
- extends ClassFieldMap
A SortedClassFieldMap
is an extension of
ClassFieldMap
which sorts object fields to
minimize "holes" between fields.
- Version:
- $Id: SortedClassFieldMap.java,v 1.2 2002/02/25 21:00:47 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
Method Summary |
protected HField[] |
declaredFields(HClass hc)
Return the declared fields of the specified class in the
order in which they should be allocated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedClassFieldMap
public SortedClassFieldMap()
- Creates a
SortedClassFieldMap
.
declaredFields
protected HField[] declaredFields(HClass hc)
- Description copied from class:
ClassFieldMap
- Return the declared fields of the specified class in the
order in which they should be allocated. This implementation
just returns the result of
hc.getDeclaredFields()
,
but you can override this to use a more intelligent sorting
routine to save space. You do not have to filter static methods
out of the returned array, but you may if you like.
- Overrides:
declaredFields
in class ClassFieldMap