fr.umlv.corosol.component
Interface JClassLayout

All Superinterfaces:
JLayout, JObject

public interface JClassLayout
extends JLayout

A layout manager for a class instance. This interface provides a method calculating the starting position of a field into the memory allocated for a class instance.

Author:
Christophe Deleray

Method Summary
 int getInstanceSize()
          Returns the number of bytes necessary to allocate a class instance into the heap associated with this layout.
 JClass getInstanceType()
          Returns the type of the instances associated whis this layout manager.
 int getPosition(JField field)
          Returns the specified field position into the memory allocated for the all class instances associated with this layout.
 
Methods inherited from interface fr.umlv.corosol.component.JLayout
getHeap
 

Method Detail

getInstanceType

JClass getInstanceType()
Returns the type of the instances associated whis this layout manager.


getInstanceSize

int getInstanceSize()
Returns the number of bytes necessary to allocate a class instance into the heap associated with this layout.


getPosition

int getPosition(JField field)
Returns the specified field position into the memory allocated for the all class instances associated with this layout.

Parameters:
field - a field which the position in the memory is to be determined
Returns:
the position of the specified field into the memory of all class instances associated with this layout.