public class NativeArray extends NativeObject
INativeObject that represents a homogeneous (this means of equal
length and type) sequence of other INativeObject instances.| Modifier and Type | Field and Description |
|---|---|
static NativeArrayType |
META
The meta class instance
|
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT| Modifier | Constructor and Description |
|---|---|
protected |
NativeArray(NativeArrayType type) |
protected |
NativeArray(NativeArrayType type,
INativeHandle handle) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
java.lang.Object |
getValue()
A Java side representation from the memory.
|
java.lang.Object |
getValue(int index) |
void |
setBaseType(INativeType baseType) |
void |
setSize(int size) |
void |
setValue(int index,
java.lang.Object value) |
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.
|
java.lang.String |
toNestedString()
A string for debugging purposes.
|
java.lang.String |
toString() |
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideStringpublic static final NativeArrayType META
protected NativeArray(NativeArrayType type)
protected NativeArray(NativeArrayType type, INativeHandle handle)
public static NativeArray create(INativeType baseType, int size)
public INativeType getBaseType()
public int getByteCount()
NativeObjectgetByteCount in class NativeObjectpublic 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()
NativeObjectThere is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType in interface INativeObjectgetNativeType in class NativeObjectpublic int getSize()
public java.lang.Object getValue()
INativeObjectINativeObject.public java.lang.Object getValue(int index)
public void setBaseType(INativeType baseType)
public void setSize(int size)
public void setValue(int index,
java.lang.Object value)
public void setValue(java.lang.Object value)
INativeObjectvalue - The new Java value.public java.lang.String toNestedString()
NativeObjecttoNestedString in class NativeObjectpublic java.lang.String toString()
toString in class java.lang.Object