|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.NativeArray
public class NativeArray
A NativeArray object represents an array not allocated in the Corosol JVM heap.
| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.component.JArray |
|---|
T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_SHORT |
| Constructor Summary | |
|---|---|
NativeArray(java.lang.Object array)
Creates a new NativeArray instance initialized with the specified underlaying JVM array. |
|
| Method Summary | |
|---|---|
boolean |
getBoolean(int index)
Returns the boolean value stored at the specified index. |
byte |
getByte(int index)
Returns the byte value stored at the specified index. |
char |
getChar(int index)
Returns the char value stored at the specified index. |
JClass |
getComponentType()
Returns the component type of this array. |
double |
getDouble(int index)
Returns the double value stored at the specified index. |
float |
getFloat(int index)
Returns the float value stored at the specified index. |
int |
getInt(int index)
Returns the int value stored at the specified index. |
long |
getLong(int index)
Returns the long value stored at the specified index. |
java.lang.Object |
getNativeObject()
Returns the object equivalent to this object but which belong to the underlaying Virtual Machine. |
JHeapObject |
getObject(int index)
Returns the object whose the reference value is stored at the specified index. |
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(int index)
Returns the short value stored at the specified index. |
int |
getSize()
Returns the size in bytes of this object into the Corosol memory heap. |
JClass |
getType()
Returns the dynamic type of this array. |
boolean |
isNative()
Determines if this array is allocated into the underlaying JVM heap and not in the Corosol JVM heap. |
int |
length()
Returns the length of this array. |
void |
setBoolean(boolean value,
int index)
Sets the specified entry with a specified boolean value. |
void |
setByte(byte value,
int index)
Sets the specified entry with a specified byte value. |
void |
setChar(char value,
int index)
Sets the specified entry with a specified char value. |
void |
setDouble(double value,
int index)
Sets the specified entry with a specified double value. |
void |
setFloat(float value,
int index)
Sets the specified entry with a specified float value. |
void |
setInt(int value,
int index)
Sets the specified entry with a specified int value. |
void |
setLayout(JArrayLayout layout)
Sets the layout of the array representing by this JArray object. |
void |
setLong(long value,
int index)
Sets the specified entry with a specified long value. |
void |
setObject(JHeapObject object,
int index)
Sets the specified entry with the reference of the specified object. |
void |
setPosition(int index)
Sets the position of the first byte of the memory allocated for the array representing by this JArray object into the Corosol heap memory. |
void |
setShort(short value,
int index)
Sets the specified entry with a specified short value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeArray(java.lang.Object array)
referenceManager - the reference manager| Method Detail |
|---|
public java.lang.Object getNativeObject()
getNativeObject in interface JHeapObjectpublic int length()
length in interface JArraypublic JClass getType()
getType in interface JHeapObjectpublic JClass getComponentType()
getComponentType in interface JArraypublic boolean getBoolean(int index)
getBoolean in interface JArrayindex - an index of an entry
public void setBoolean(boolean value,
int index)
setBoolean in interface JArrayvalue - the value to be storedindex - an index of an entrypublic byte getByte(int index)
getByte in interface JArrayindex - an index of an entry
public void setByte(byte value,
int index)
setByte in interface JArrayvalue - the value to be storedindex - an index of an entrypublic char getChar(int index)
getChar in interface JArrayindex - an index of an entry
public void setChar(char value,
int index)
setChar in interface JArrayvalue - the value to be storedindex - an index of an entrypublic double getDouble(int index)
getDouble in interface JArrayindex - an index of an entry
public void setDouble(double value,
int index)
setDouble in interface JArrayvalue - the value to be storedindex - an index of an entrypublic float getFloat(int index)
getFloat in interface JArrayindex - an index of an entry
public void setFloat(float value,
int index)
setFloat in interface JArrayvalue - the value to be storedindex - an index of an entrypublic int getInt(int index)
getInt in interface JArrayindex - an index of an entry
public void setInt(int value,
int index)
setInt in interface JArrayvalue - the value to be storedindex - an index of an entrypublic long getLong(int index)
getLong in interface JArrayindex - an index of an entry
public void setLong(long value,
int index)
setLong in interface JArrayvalue - the value to be storedindex - an index of an entrypublic short getShort(int index)
getShort in interface JArrayindex - an index of an entry
public void setShort(short value,
int index)
setShort in interface JArrayvalue - the value to be storedindex - an index of an entrypublic JHeapObject getObject(int index)
getObject in interface JArrayindex - an index of an entry
public void setObject(JHeapObject object,
int index)
setObject in interface JArrayobject - the object whose the reference value will be storedindex - an index of an entrypublic boolean isNative()
isNative in interface JHeapObjectpublic void setLayout(JArrayLayout layout)
setLayout in interface JArraylayout - the layout describing the entry positions of this arraypublic 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 array into the Corosol heap memory.public int getSize()
getSize in interface JAllocatable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||