|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJArray
public class DefaultJArray
The default implementation of the JArray interface representing an array allocated into the Corosol 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 | |
|---|---|
DefaultJArray(int length)
Creates a new DefaultJArray object representing a new array of length element. |
|
| 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 a proxy of the class instance represented by this JClassInstance object. |
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 array representing by this JArray 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 the array represented by the DefaultJArray object. |
boolean |
isNative()
Determines if the class instance represented by this JClassInstance object is allocated into the underlaying JVM heap and not into 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. |
java.lang.String |
toString()
Returns a String representation of the class instance represented by this JClassInstance object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJArray(int length)
length - the length of this array| Method Detail |
|---|
public int length()
length in interface JArraypublic JClass getComponentType()
getComponentType in interface JArraypublic boolean getBoolean(int index)
getBoolean in interface JArrayindex - an index of an entry
public byte getByte(int index)
getByte in interface JArrayindex - an index of an entry
public char getChar(int index)
getChar in interface JArrayindex - an index of an entry
public double getDouble(int index)
getDouble in interface JArrayindex - an index of an entry
public float getFloat(int index)
getFloat in interface JArrayindex - an index of an entry
public int getInt(int index)
getInt in interface JArrayindex - an index of an entry
public long getLong(int index)
getLong in interface JArrayindex - an index of an entry
public short getShort(int index)
getShort in interface JArrayindex - an index of an entry
public JHeapObject getObject(int index)
getObject 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 entry
public void setByte(byte value,
int index)
setByte in interface JArrayvalue - the value to be storedindex - 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 entry
public void setDouble(double value,
int index)
setDouble in interface JArrayvalue - the value to be storedindex - 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 entry
public void setInt(int value,
int index)
setInt in interface JArrayvalue - the value to be storedindex - 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 entry
public void setShort(short value,
int index)
setShort in interface JArrayvalue - the value to be storedindex - 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 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 JAllocatablepublic 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 | ||||||||