|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJReferenceManager
public class DefaultJReferenceManager
This is the default implementation of the JReferenceManager interface. The reference is read and written as int value into the specified heap.
| Constructor Summary | |
|---|---|
DefaultJReferenceManager()
Creates a new DefaultJReferenceManager object. |
|
| Method Summary | |
|---|---|
void |
assignReference(JHeapObject object)
Assigns a new reference to the specified object and saves the association |
void |
configure(JVirtualMachine jvm)
Configures the reference manager via the specified JVM. |
java.lang.Class |
getComponentClass()
Returns the class object describing this component. |
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. |
void |
replace(JVMComponent component)
Replaces the data of this heap by the data of the specified component. |
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 class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJReferenceManager()
| Method Detail |
|---|
public java.lang.Class getComponentClass()
getComponentClass in interface JVMComponentpublic void configure(JVirtualMachine jvm)
configure in interface JVMComponentjvm - the Java Virtual Machinepublic void replace(JVMComponent component)
replace in interface JVMComponentcomponent - a component to be used to initialize this heap
public JHeapObject readReference(JHeap heap,
int index)
readReference in interface JReferenceManagerheap - a Corosol heapindex - index at which the reference value is to be read
public void writeReference(JHeap heap,
int index,
JHeapObject object)
writeReference in interface JReferenceManagerheap - a Corosol heapindex - index at which the reference value is to be writedobject - the object which reference is to be writed in the heappublic int sizeofReference(JHeap heap)
sizeofReference in interface JReferenceManagerheap - a Corosol heap
public void assignReference(JHeapObject object)
assignReference in interface JReferenceManagerobject - a heap objectpublic JHeapObject wrapNativeObject(java.lang.Object nativeObject)
wrapNativeObject in interface JReferenceManagernativeObject - an object allocated into the underlaying JVM heap
public JReturnAddress wrapPC(int pc)
wrapPC in interface JReferenceManagerpc - a program counter into the bytecode array
public java.util.Iterator getObjects()
getObjects in interface JReferenceManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||