|
intarsys nativeC library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeArray
public class NativeArray
An INativeObject
that represents a homogeneous (this means of equal
length and type) sequence of other INativeObject
instances.
Field Summary | |
---|---|
static NativeArrayType |
META
The meta class instance |
Fields inherited from class de.intarsys.nativec.type.NativeObject |
---|
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_SHORT |
Method Summary | |
---|---|
static NativeArray |
create(INativeType baseType,
int size)
|
INativeType |
getBaseType()
|
int |
getByteCount()
The number of bytes occupied by this. |
INativeObject |
getNativeObject(int index)
The INativeObject at index in the sequence (the index'th element
of the array). |
INativeType |
getNativeType()
The meta information and behavior for the NativeObject. |
int |
getSize()
The number of NativeObject instances in the sequence represented by this (in other terms the array size). |
Object |
getValue()
A Java side representation from the memory. |
Object |
getValue(int index)
|
void |
setBaseType(INativeType baseType)
|
void |
setSize(int size)
|
void |
setValue(int index,
Object value)
|
void |
setValue(Object value)
Assign (and marshall to memory) the Java side representation. |
String |
toNestedString()
A string for debugging purposes. |
String |
toString()
|
Methods inherited from class de.intarsys.nativec.type.NativeObject |
---|
cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final NativeArrayType META
Method Detail |
---|
public static NativeArray create(INativeType baseType, int size)
public INativeType getBaseType()
public int getByteCount()
NativeObject
getByteCount
in class NativeObject
public INativeObject getNativeObject(int index)
INativeObject
at index in the sequence (the index'th element
of the array).
index
- The index of the element to be reported.
public INativeType getNativeType()
NativeObject
There is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType
in interface INativeObject
getNativeType
in class NativeObject
public int getSize()
public Object getValue()
INativeObject
INativeObject
.public Object getValue(int index)
public void setBaseType(INativeType baseType)
public void setSize(int size)
public void setValue(int index, Object value)
public void setValue(Object value)
INativeObject
value
- The new Java value.public String toNestedString()
NativeObject
toNestedString
in class NativeObject
public String toString()
toString
in class Object
|
intarsys nativeC library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |