|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.JSimpleHeapAllocator
public class JSimpleHeapAllocator
A JHeapAllocator represents an allocator for the memory heap.
| Constructor Summary | |
|---|---|
JSimpleHeapAllocator()
Creates a new JSimpleHeapAllocator instance. |
|
| Method Summary | |
|---|---|
JArray |
allocateArray(JClass componentType,
int length)
Returns a new allocated array with the specified component type and length. |
JArray |
allocateArray(JClass componentType,
int[] dimensions)
Returns a new allocated array with the specified component type and dimensions. |
JClassInstance |
allocateClassInstance(JClass c)
Returns a new allocated class instance of the specified type. |
JavaStack |
allocateJavaStack(int size)
Returns a new allocated Java stack of the specified number of bytes. |
void |
configure(JVirtualMachine jvm)
Configures the allocator via the specified JVM. |
java.lang.Class |
getComponentClass()
Returns the class object describing this component. |
void |
moveAllocatables(JHeap srcHeap,
JHeap destHeap)
|
void |
replace(JVMComponent component)
Replaces the data of this allocator by the data of the specified component. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSimpleHeapAllocator()
| Method Detail |
|---|
public void configure(JVirtualMachine jvm)
configure in interface JVMComponentjvm - the Java Virtual Machinepublic java.lang.Class getComponentClass()
getComponentClass in interface JVMComponentpublic void replace(JVMComponent component)
replace in interface JVMComponentcomponent - a component to be used to initialize this componentpublic JClassInstance allocateClassInstance(JClass c)
allocateClassInstance in interface JHeapAllocatorc - the class to be instanciated
public JArray allocateArray(JClass componentType,
int length)
allocateArray in interface JHeapAllocatorcomponentType - the JClass object representing the component
type of the new arraylength - the length of the new array
public JArray allocateArray(JClass componentType,
int[] dimensions)
allocateArray in interface JHeapAllocatorcomponentType - the JClass object representing the component
type of the new arraydimensions - an array of int types representing the dimensions
of the new array
public JavaStack allocateJavaStack(int size)
allocateJavaStack in interface JHeapAllocatorsize - the size of the newly allocated Java stack in bytes
public void moveAllocatables(JHeap srcHeap,
JHeap destHeap)
moveAllocatables in interface JHeapAllocator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||