fr.umlv.corosol.component
Interface JClassInstance

All Superinterfaces:
JAllocatable, JHeapObject, JObject
All Known Implementing Classes:
DefaultJClassInstance, NativeClassInstance, StringInstance

public interface JClassInstance
extends JHeapObject, JAllocatable

This interface represents an instance of a class.

Author:
Christophe Deleray

Method Summary
 boolean getBoolean(JField field)
          Returns the boolean value of the specified field.
 byte getByte(JField field)
          Returns the byte value of the specified field.
 char getChar(JField field)
          Returns the char value of the specified field.
 double getDouble(JField field)
          Returns the double value of the specified field.
 float getFloat(JField field)
          Returns the float value of the specified field.
 int getInt(JField field)
          Returns the int value of the specified field.
 long getLong(JField field)
          Returns the long value of the specified field.
 JHeapObject getObject(JField field)
          Returns the object corresponding to the specified field.
 short getShort(JField field)
          Returns the short value of the specified field.
 void setBoolean(JField field, boolean value)
          Sets the specified field with the specified boolean value.
 void setByte(JField field, byte value)
          Sets the specified field with the specified byte value.
 void setChar(JField field, char value)
          Sets the specified field with the specified char value.
 void setDouble(JField field, double value)
          Sets the specified field with the specified double value.
 void setFloat(JField field, float value)
          Sets the specified field with the specified float value.
 void setInt(JField field, int value)
          Sets the specified field with the specified int value.
 void setLayout(JClassLayout layout)
          Sets the layout of the object representing by this JClassInstance object.
 void setLong(JField field, long value)
          Sets the specified field with the specified long value.
 void setObject(JField field, JHeapObject value)
          Sets the specified field with the reference of the specified object.
 void setShort(JField field, short value)
          Sets the specified field with the specified short value.
 
Methods inherited from interface fr.umlv.corosol.component.JHeapObject
getNativeObject, getType, isNative
 
Methods inherited from interface fr.umlv.corosol.component.JAllocatable
getPosition, getSize, setPosition
 

Method Detail

setLayout

void setLayout(JClassLayout layout)
Sets the layout of the object representing by this JClassInstance object. layout describes the relative position of each field of this object into the memory allocated for it.

Parameters:
layout - the layout describing the object class field positions

getByte

byte getByte(JField field)
Returns the byte value of the specified field.

Parameters:
field - a field
Returns:
the field value

getBoolean

boolean getBoolean(JField field)
Returns the boolean value of the specified field.

Parameters:
field - a field
Returns:
the field value

getChar

char getChar(JField field)
Returns the char value of the specified field.

Parameters:
field - a field
Returns:
the field value

getShort

short getShort(JField field)
Returns the short value of the specified field.

Parameters:
field - a field
Returns:
the field value

getInt

int getInt(JField field)
Returns the int value of the specified field.

Parameters:
field - a field
Returns:
the field value

getFloat

float getFloat(JField field)
Returns the float value of the specified field.

Parameters:
field - a field
Returns:
the field value

getLong

long getLong(JField field)
Returns the long value of the specified field.

Parameters:
field - a field
Returns:
the field value

getDouble

double getDouble(JField field)
Returns the double value of the specified field.

Parameters:
field - a field
Returns:
the field value

getObject

JHeapObject getObject(JField field)
Returns the object corresponding to the specified field.

Parameters:
field - a field
Returns:
the field value

setByte

void setByte(JField field,
             byte value)
Sets the specified field with the specified byte value.

Parameters:
field - a field
value - a byte value

setBoolean

void setBoolean(JField field,
                boolean value)
Sets the specified field with the specified boolean value.

Parameters:
field - a field
value - a boolean value

setChar

void setChar(JField field,
             char value)
Sets the specified field with the specified char value.

Parameters:
field - a field
value - a char value

setShort

void setShort(JField field,
              short value)
Sets the specified field with the specified short value.

Parameters:
field - a field
value - a short value

setInt

void setInt(JField field,
            int value)
Sets the specified field with the specified int value.

Parameters:
field - a field
value - a int value

setFloat

void setFloat(JField field,
              float value)
Sets the specified field with the specified float value.

Parameters:
field - a field
value - a float value

setLong

void setLong(JField field,
             long value)
Sets the specified field with the specified long value.

Parameters:
field - a field
value - a long value

setDouble

void setDouble(JField field,
               double value)
Sets the specified field with the specified double value.

Parameters:
field - a field
value - a double value

setObject

void setObject(JField field,
               JHeapObject value)
Sets the specified field with the reference of the specified object.

Parameters:
field - a field
value - an object