|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JReferenceManager
A JReferenceManager implements the reference representation into Corosol heap memory and permits to read and write objets into it. It also assigns a reference for each heap object and manages the associations between an heap object and its reference.
| Method Summary | |
|---|---|
void |
assignReference(JHeapObject object)
Assigns a new reference to the specified object and saves the association |
java.util.Iterator |
getObjects()
Returns an iterator over all the referenced objects. |
JHeapObject |
readReference(JHeap heap,
int index)
Reads a reference value starting at the specified position in the specified heap and returns the object it referents to. |
int |
sizeofReference(JHeap heap)
Returns the size of a reference value the size in bytes into the specified Corosol heap. |
JHeapObject |
wrapNativeObject(java.lang.Object nativeObject)
Returns the specified object (class instance or array) allocated into the underlaying JVM heap as a JHeapObject object and assigns a new reference to this new object. |
JReturnAddress |
wrapPC(int pc)
Returns the returnAddress value corresponding to the specified program counter. |
void |
writeReference(JHeap heap,
int index,
JHeapObject object)
Writes the reference of the specified object at the specified position in the specified heap. |
| Methods inherited from interface fr.umlv.corosol.component.JVMComponent |
|---|
configure, getComponentClass, replace |
| Method Detail |
|---|
JHeapObject readReference(JHeap heap,
int index)
heap - a Corosol heapindex - index at which the reference value is to be read
void writeReference(JHeap heap,
int index,
JHeapObject object)
heap - a Corosol heapindex - index at which the reference value is to be writedobject - the object which reference is to be writed in the heapint sizeofReference(JHeap heap)
heap - a Corosol heap
void assignReference(JHeapObject object)
object - a heap objectJHeapObject wrapNativeObject(java.lang.Object nativeObject)
nativeObject - an object allocated into the underlaying JVM heap
JReturnAddress wrapPC(int pc)
pc - a program counter into the bytecode array
java.util.Iterator getObjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||