|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.Maps.FieldMap
public abstract class FieldMap
A FieldMap
assigns an ordering to a set of fields.
Typically separate FieldMap
s will be used for class
fields (which are allocated locally) and static fields (which are
allocated globally). Note that the ordering corresponds directly to
an offset from the first ordered field when the size returned by
fieldSize() is taken into account.
Constructor Summary | |
---|---|
FieldMap()
|
Method Summary | |
---|---|
int |
fieldAlignment(HField hf)
|
abstract List<HField> |
fieldList(HClass hc)
Return an unmodifiable List over all appropriate fields in the given class, in order from smallest to largest offset. |
abstract int |
fieldOffset(HField hf)
Return an offset to the given field. |
abstract int |
fieldSize(HField hf)
Return the allocated size of a given field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldMap()
Method Detail |
---|
public abstract int fieldOffset(HField hf)
public abstract List<HField> fieldList(HClass hc)
public abstract int fieldSize(HField hf)
public int fieldAlignment(HField hf)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |