fr.umlv.corosol.component
Interface JAllocatable

All Known Subinterfaces:
JArray, JavaStack, JClassInstance, JStackFrame
All Known Implementing Classes:
DefaultJArray, DefaultJavaStack, DefaultJClassInstance, NativeArray, NativeClassInstance, StringInstance, TypedJavaStack

public interface JAllocatable

This interface represents an object allocated into the Corosol heap memory.

Author:
Christophe Deleray

Method Summary
 int getPosition()
          Returns the position of the first byte of the memory allocated for the object representing by this JAllocatable object into the Corosol heap memory.
 int getSize()
          Returns the size in bytes of this object into the Corosol memory heap.
 void setPosition(int index)
          Sets the position of the first byte of the memory allocated for the object representing by this JAllocatable object into the Corosol heap memory.
 

Method Detail

getPosition

int getPosition()
Returns the position of the first byte of the memory allocated for the object representing by this JAllocatable object into the Corosol heap memory.

Returns:
the position of the first byte of the memory allocated for this object into the Corosol heap memory

setPosition

void setPosition(int index)
Sets the position of the first byte of the memory allocated for the object representing by this JAllocatable object into the Corosol heap memory.

Parameters:
index - the position of the first byte of the memory allocated for this object into the Corosol heap memory.

getSize

int getSize()
Returns the size in bytes of this object into the Corosol memory heap.