|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJClassInstance
public class DefaultJClassInstance
This is the default implementation of the DefaultJClassInstance interface.
| Constructor Summary | |
|---|---|
DefaultJClassInstance()
Creates a new DefaultJClassInstance. |
|
| 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. |
java.lang.Object |
getNativeObject()
Returns a proxy of the class instance represented by this DefaultJClassInstance object. |
JHeapObject |
getObject(JField field)
Returns the object corresponding to the specified field. |
int |
getPosition()
Returns the position of the first byte of the memory allocated for the object representing by this JClassInstance object into the Corosol heap memory. |
short |
getShort(JField field)
Returns the short value of the specified field. |
int |
getSize()
Returns the size in bytes of this object into the Corosol memory heap. |
JClass |
getType()
Returns the dynamic type of the class instance represented by this DefaultJClassInstance object. |
boolean |
isNative()
Determines if the class instance represented by this DefaultJClassInstance object is allocated into the underlaying JVM heap and not into the Corosol JVM heap. |
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 |
setPosition(int index)
Sets the position of the first byte of the memory allocated for the object representing by this JClassInstance object into the Corosol heap memory. |
void |
setShort(JField field,
short value)
Sets the specified field with the specified short value. |
java.lang.String |
toString()
Returns a String representation of the class instance represented by this DefaultJClassInstance object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJClassInstance()
| Method Detail |
|---|
public void setLayout(JClassLayout layout)
setLayout in interface JClassInstancelayout - the layout describing the object class field positionspublic int getPosition()
getPosition in interface JAllocatablepublic void setPosition(int index)
setPosition in interface JAllocatableindex - the position of the first byte of the memory allocated for
this object into the Corosol heap memory.public int getSize()
getSize in interface JAllocatablepublic byte getByte(JField field)
getByte in interface JClassInstancefield - a field
public boolean getBoolean(JField field)
getBoolean in interface JClassInstancefield - a field
public char getChar(JField field)
getChar in interface JClassInstancefield - a field
public short getShort(JField field)
getShort in interface JClassInstancefield - a field
public int getInt(JField field)
getInt in interface JClassInstancefield - a field
public float getFloat(JField field)
getFloat in interface JClassInstancefield - a field
public long getLong(JField field)
getLong in interface JClassInstancefield - a field
public double getDouble(JField field)
getDouble in interface JClassInstancefield - a field
public JHeapObject getObject(JField field)
getObject in interface JClassInstancefield - a field
public void setByte(JField field,
byte value)
setByte in interface JClassInstancefield - a fieldvalue - a byte value
public void setBoolean(JField field,
boolean value)
setBoolean in interface JClassInstancefield - a fieldvalue - a boolean value
public void setChar(JField field,
char value)
setChar in interface JClassInstancefield - a fieldvalue - a char value
public void setShort(JField field,
short value)
setShort in interface JClassInstancefield - a fieldvalue - a short value
public void setInt(JField field,
int value)
setInt in interface JClassInstancefield - a fieldvalue - a int value
public void setFloat(JField field,
float value)
setFloat in interface JClassInstancefield - a fieldvalue - a float value
public void setLong(JField field,
long value)
setLong in interface JClassInstancefield - a fieldvalue - a long value
public void setDouble(JField field,
double value)
setDouble in interface JClassInstancefield - a fieldvalue - a double value
public void setObject(JField field,
JHeapObject value)
setObject in interface JClassInstancefield - a fieldvalue - an objectpublic java.lang.Object getNativeObject()
getNativeObject in interface JHeapObjectpublic JClass getType()
getType in interface JHeapObjectpublic boolean isNative()
isNative in interface JHeapObjectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||