T
- The TClrObject's typepublic class TClrObjectArray<T extends TClrObject> extends TClrArray implements IClrObjectArray<T>
Modifier | Constructor and Description |
---|---|
|
TClrObjectArray(java.lang.Class<T> elementClazz,
DotNetNativeTypes.ClrArray array)
Initializes a new instance of the TClrObjectArray class of the specified Class and clr Array pointer.
|
|
TClrObjectArray(java.lang.Class<T> elementClazz,
DotNetNativeTypes.ClrObject object)
Initializes a new instance of the TClrObjectArray class of the specified Class and clr Object pointer.
|
|
TClrObjectArray(java.lang.Class<T> elementClazz,
DotNetNativeTypes.ClrObjectArray array)
Initializes a new instance of the TClrObjectArray class of the specified Class and clr ObjectArray pointer.
|
|
TClrObjectArray(java.lang.Class<T> elementClazz,
java.lang.String dotNetElementType,
int length)
Initializes a new instance of the TClrObjectArray class of the specified Class, .Net element type name and length.
|
protected |
TClrObjectArray(java.lang.Class<T> elementClazz,
java.lang.String dotNetElementType,
T[] array)
Initializes a new instance of the TClrObjectArray class of the specified Class, .Net element type name and an array of type T.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
T |
get(int index)
Gets the value at the specified position in the one-dimensional Array.
|
DotNetNativeTypes.ClrObjectArray |
getDefaultPointer()
Gets the default clr array pointer.
|
java.lang.Class<T> |
getElementClass()
Gets statically defined returned type.
|
int |
indexOf(T value)
Searches for the specified object of type T and returns the index of its first occurrence in a one-dimensional array.
|
void |
reset()
Clear the content of the array.
|
void |
set(T value,
int index)
Sets a value to the element at the specified position in the one-dimensional Array.
|
void |
setValue(java.lang.Object value,
int index)
Sets a value to the element at the specified position in the one-dimensional Array.
|
T[] |
toArray()
Copies the elements of the IClrObjectArray to a new array.
|
createAssemblyArray, createBooleanArray, createByteArray, createClrArray, createDateTimeArray, createDecimalArray, createDoubleArray, createFloatArray, createInstance, createInstance, createIntArray, createLongArray, createObjectArray, createSByteArray, createShortArray, createStringArray, createTypeArray, emptyObjectArray, getClrObject, getElementType, getLength, getStaticArray, getType, getValue, getValue, indexOf, of, of, setValue, toClrObject, toObjectArray
clearRef, equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, invokeGenericClrObjectMethod, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEvent, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEvent, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementType, getLength, getType, getValue, indexOf, New, toClrObject
equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
public TClrObjectArray(java.lang.Class<T> elementClazz, DotNetNativeTypes.ClrObject object) throws EClrError
elementClazz
- The class of the Array to create.object
- The clr object pointer which represents a pointer to a clr array.EClrError
protected TClrObjectArray(java.lang.Class<T> elementClazz, java.lang.String dotNetElementType, T[] array) throws EClrError
elementClazz
- The class of the Array to create.dotNetElementType
- The full name of the .Net Element type.array
- The array of type TEClrError
public TClrObjectArray(java.lang.Class<T> elementClazz, java.lang.String dotNetElementType, int length) throws EClrError
elementClazz
- The class of the Array to create.dotNetElementType
- The full name of the .Net Element type.length
- The size of the Array to create.EClrError
public TClrObjectArray(java.lang.Class<T> elementClazz, DotNetNativeTypes.ClrArray array) throws EClrError
elementClazz
- The class of the Array to create.array
- The clr array pointer.EClrError
public TClrObjectArray(java.lang.Class<T> elementClazz, DotNetNativeTypes.ClrObjectArray array) throws EClrError
elementClazz
- The class of the Array to create.array
- The clr ObjectArray pointer.EClrError
public void close() throws java.lang.Exception
public DotNetNativeTypes.ClrObjectArray getDefaultPointer()
getDefaultPointer
in interface IClrArray
getDefaultPointer
in interface IClrObjectArray<T extends TClrObject>
getDefaultPointer
in class TClrArray
public java.lang.Class<T> getElementClass()
getElementClass
in interface IClrObjectArray<T extends TClrObject>
public T get(int index) throws java.lang.Exception
get
in interface IClrObjectArray<T extends TClrObject>
index
- A 32-bit integer that represents the position of the Array element to get.java.lang.Exception
public int indexOf(T value) throws EClrError
indexOf
in interface IClrObjectArray<T extends TClrObject>
value
- The object to locate in array.EClrError
public void set(T value, int index) throws EClrError
set
in interface IClrObjectArray<T extends TClrObject>
value
- The new value for the specified element.index
- A 32-bit integer that represents the position of the Array element to set.EClrError
public void reset() throws java.lang.Exception
reset
in interface IClrObjectArray<T extends TClrObject>
java.lang.Exception
public T[] toArray() throws java.lang.Exception
toArray
in interface IClrObjectArray<T extends TClrObject>
java.lang.Exception
public void setValue(java.lang.Object value, int index) throws EClrError