|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Interpret.Tree.OffsetMap | +--harpoon.Interpret.Tree.InterpreterOffsetMap
A simple OffsetMap, used by the Tree Interpreter
Constructor Summary | |
InterpreterOffsetMap(ClassHierarchy ch)
|
|
InterpreterOffsetMap(ClassHierarchy ch,
NameMap nm)
Class constructor |
Method Summary | |
int |
clazzPtrOffset(HClass hc)
Returns the offset of the class pointer |
int |
componentTypeOffset(HClass hc)
If hc is an array type, returns the offset of its component type's class pointer |
Object |
decodeLabel(Label label)
|
int |
displaySize()
Returns the size of the display information of the specified class |
int |
elementsOffset(HClass hc)
Returns the offset of the first array element if hc is an array type, otherwise generates an assertion failure |
int |
fieldsOffset(HClass hc)
Returns the offset of the first field in an object of the specified type |
int |
hashCodeOffset(HClass hc)
Returns the offset of the hashcode of the specified object |
int |
interfaceListOffset(HClass hc)
If hc is a class type, or an interface, returns the offset from the class pointer of the pointer to implemented interfaces |
Label |
jlClass(HClass hc)
|
Label |
label(HClass hc)
Returns the label corresponding to the specified HClass |
Label |
label(HField hf)
Returns the label corresponding to the specified static field |
Label |
label(HMethod hm)
Returns the label corrensponding to the specified method. |
Label |
label(String stringConstant)
Returns the label corresponding to the specified String constant |
int |
lengthOffset(HClass hc)
If hc is an array type, returns the offset of its length field |
int |
offset(HClass hc)
Returns the offset from the class pointer of this class's pointer in the display |
int |
offset(HField hf)
Returns the offset from the object reference of the specified non-static field |
int |
offset(HMethod hm)
Returns the offset from the class pointer of the specified non-static method |
int |
size(HClass hc)
Returns the size of the specified class |
Map |
stringConstantMap()
|
Set |
stringConstants()
|
int |
wordsize()
Returns the size (in bytes) of a word in the architecture represented by this OffsetMap . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InterpreterOffsetMap(ClassHierarchy ch)
public InterpreterOffsetMap(ClassHierarchy ch, NameMap nm)
Method Detail |
public Object decodeLabel(Label label)
public Label jlClass(HClass hc)
public Label label(HClass hc)
public Label label(HField hf)
public Label label(HMethod hm)
public Label label(String stringConstant)
public Set stringConstants()
public Map stringConstantMap()
public int clazzPtrOffset(HClass hc)
clazzPtrOffset
in class harpoon.Interpret.Tree.OffsetMap
public int componentTypeOffset(HClass hc)
componentTypeOffset
in class harpoon.Interpret.Tree.OffsetMap
public int displaySize()
displaySize
in class harpoon.Interpret.Tree.OffsetMap
public int elementsOffset(HClass hc)
elementsOffset
in class harpoon.Interpret.Tree.OffsetMap
public int fieldsOffset(HClass hc)
fieldsOffset
in class harpoon.Interpret.Tree.OffsetMap
public int hashCodeOffset(HClass hc)
hashCodeOffset
in class harpoon.Interpret.Tree.OffsetMap
public int interfaceListOffset(HClass hc)
interfaceListOffset
in class harpoon.Interpret.Tree.OffsetMap
public int lengthOffset(HClass hc)
lengthOffset
in class harpoon.Interpret.Tree.OffsetMap
public int offset(HClass hc)
offset
in class harpoon.Interpret.Tree.OffsetMap
public int offset(HField hf)
offset
in class harpoon.Interpret.Tree.OffsetMap
public int offset(HMethod hm)
offset
in class harpoon.Interpret.Tree.OffsetMap
public int size(HClass hc)
size
in class harpoon.Interpret.Tree.OffsetMap
public int wordsize()
harpoon.Interpret.Tree.OffsetMap
OffsetMap
.
wordsize
in class harpoon.Interpret.Tree.OffsetMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |