|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JArray
An array allocated into the Corosol JVM heap. This interface provides method for reading and writing value at a specified index into an array.
| Field Summary | |
|---|---|
static int |
T_BOOLEAN
The tag associated with an array of boolean. |
static int |
T_BYTE
The tag associated with an array of byte. |
static int |
T_CHAR
The tag associated with an array of char. |
static int |
T_DOUBLE
The tag associated with an array of double. |
static int |
T_FLOAT
The tag associated with an array of float. |
static int |
T_INT
The tag associated with an array of int. |
static int |
T_LONG
The tag associated with an array of long. |
static int |
T_SHORT
The tag associated with an array of short. |
| 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. |
JHeapObject |
getObject(int index)
Returns the object whose the reference value is stored at the specified index. |
short |
getShort(int index)
Returns the short value stored at the specified index. |
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 |
setShort(short value,
int index)
Sets the specified entry with a 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 |
| Field Detail |
|---|
static final int T_BOOLEAN
static final int T_CHAR
static final int T_FLOAT
static final int T_DOUBLE
static final int T_BYTE
static final int T_SHORT
static final int T_INT
static final int T_LONG
| Method Detail |
|---|
int length()
JClass getComponentType()
boolean getBoolean(int index)
index - an index of an entry
byte getByte(int index)
index - an index of an entry
char getChar(int index)
index - an index of an entry
double getDouble(int index)
index - an index of an entry
float getFloat(int index)
index - an index of an entry
int getInt(int index)
index - an index of an entry
long getLong(int index)
index - an index of an entry
short getShort(int index)
index - an index of an entry
JHeapObject getObject(int index)
index - an index of an entry
void setBoolean(boolean value,
int index)
value - the value to be storedindex - an index of an entry
void setByte(byte value,
int index)
value - the value to be storedindex - an index of an entry
void setChar(char value,
int index)
value - the value to be storedindex - an index of an entry
void setDouble(double value,
int index)
value - the value to be storedindex - an index of an entry
void setFloat(float value,
int index)
value - the value to be storedindex - an index of an entry
void setInt(int value,
int index)
value - the value to be storedindex - an index of an entry
void setLong(long value,
int index)
value - the value to be storedindex - an index of an entry
void setShort(short value,
int index)
value - the value to be storedindex - an index of an entry
void setObject(JHeapObject object,
int index)
object - the object whose the reference value will be storedindex - an index of an entryvoid setLayout(JArrayLayout layout)
layout - the layout describing the entry positions of this array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||