JuggerNET Runtime Library v3.6.54.0
3.6.54.0
|
The baseclass for all array types that are proxy types for Java types. More...
Classes | |
class | Enumerator |
Public Member Functions | |
void | Dispose () |
Releases the corresponding Java object, thereby making it eligible for garbage collection if no other references to the same object are held. More... | |
void | Release () |
Releases the connection between this proxy instance and the Java object without freeing the Java object. More... | |
override bool | Equals (object obj) |
Implemented in terms of the Java equals() method. If the other object is not also a subclass of a JavaObject, the return value is always false. This is to ensure that the the results of a comparison is independent of the order, i.e. More... | |
override int | GetHashCode () |
Implemented in terms of the Java hashCode() method. More... | |
override string | ToString () |
Implemented in terms of the Java toString() method. More... | |
bool | IsInstanceOf (JavaClass clazz) |
Returns true if the instance is type compatible with the given Java type. More... | |
bool | IsSame (JavaProxy proxy) |
Returns true if the proxy instance wraps around the same Java object as the other proxy instance. More... | |
virtual IEnumerator | GetEnumerator () |
Provides the default implementation for reference type arrays. Primitive arrays override this method. More... | |
Protected Member Functions | |
JuggerNETProxyArray (JavaMethod ctor, int size) | |
JuggerNETProxyArray (JavaMethod ctor, JavaClass elemClazz, int size) | |
JuggerNETProxyArray (JNIHandle jobject) | |
object | GetElement (Type type, int index) |
The element accessor for arrays of reference types. More... | |
JNIHandle | GetElement (int index) |
The element accessor for arrays of reference types that are leafs in the proxy type system. This method can dramatically enhance the performance of the element access because we can directly construct the return type through a constructor invocation rather than through using reflection. More... | |
void | SetElement (int index, object elem) |
The element mutator for arrays of reference types. More... | |
void | SetElement (int index, Type elemType, object elem) |
The element mutator for arrays of reference types that might require dynamic peer creation. More... | |
Properties | |
long | JObject [get, set] |
A property giving access to the JNI object handle that represents the wrapped Java instance. More... | |
long | JObjectDuplicate [get] |
A property representing a duplicated JNI object handle. More... | |
HandleRef | Handle [get] |
bool | IsFixedSize [get] |
Always true. More... | |
bool | IsReadOnly [get] |
Always false. More... | |
bool | IsSynchronized [get] |
Always false. More... | |
int | Length [get] |
The number of elements that the array can hold. More... | |
abstract int | Rank [get] |
The rank (number of dimensions) of the array. More... | |
object | SyncRoot [get] |
The synchronization object for the array (the array itself). More... | |
abstract Type | ElementType [get] |
The .NET type of the array elements. More... | |
Properties inherited from Codemesh.JuggerNET.JavaProxy | |
long | JObject [get, set] |
A property representing the JNI object handle. More... | |
HandleRef | Handle [get] |
A property representing the JNI object handle. More... | |
long | JObjectDuplicate [get] |
A property representing a duplicated JNI object handle. More... | |
The baseclass for all array types that are proxy types for Java types.
|
inline |
Releases the corresponding Java object, thereby making it eligible for garbage collection if no other references to the same object are held.
|
inline |
Implemented in terms of the Java equals() method. If the other object is not also a subclass of a JavaObject, the return value is always false. This is to ensure that the the results of a comparison is independent of the order, i.e.
a.Equals( b ) == b.Equals( a )
which could not be guaranteed if we did special things for obj being of some special .NET type.
obj | the object we're comparing for equality. |
|
inlineprotected |
The element accessor for arrays of reference types that are leafs in the proxy type system. This method can dramatically enhance the performance of the element access because we can directly construct the return type through a constructor invocation rather than through using reflection.
index | the index |
|
inlineprotected |
The element accessor for arrays of reference types.
type | the .NET type of the element |
index | the index |
References Codemesh.JuggerNET.JavaClass.GetTypedInstance().
|
inlinevirtual |
Provides the default implementation for reference type arrays. Primitive arrays override this method.
Reimplemented in Codemesh.JuggerNET.shortArray, Codemesh.JuggerNET.longArray, Codemesh.JuggerNET.intArray, Codemesh.JuggerNET.floatArray, Codemesh.JuggerNET.doubleArray, Codemesh.JuggerNET.charArray, Codemesh.JuggerNET.byteArray, and Codemesh.JuggerNET.boolArray.
References Codemesh.JuggerNET.JuggerNETProxyArray.ElementType.
|
inline |
Implemented in terms of the Java hashCode() method.
|
inline |
Returns true if the instance is type compatible with the given Java type.
clazz | the Java type. |
Implements Codemesh.JuggerNET.JavaProxy.
References Codemesh.JuggerNET.JuggerNETProxyArray.JObject.
|
inline |
Returns true if the proxy instance wraps around the same Java object as the other proxy instance.
proxy | The other proxy instance. |
Implements Codemesh.JuggerNET.JavaProxy.
|
inline |
Releases the connection between this proxy instance and the Java object without freeing the Java object.
Implements Codemesh.JuggerNET.JavaProxy.
|
inlineprotected |
The element mutator for arrays of reference types.
index | the index |
elem | the element to set into the array at the given index. |
|
inlineprotected |
The element mutator for arrays of reference types that might require dynamic peer creation.
index | the index |
elemType | the element type to be considered during peer creation. |
elem | the element to set into the array at the given index. |
|
inline |
Implemented in terms of the Java toString() method.
|
get |
The .NET type of the array elements.
Referenced by Codemesh.JuggerNET.JuggerNETProxyArray.GetEnumerator().
|
get |
Always true.
|
get |
Always false.
|
get |
Always false.
|
getset |
A property giving access to the JNI object handle that represents the wrapped Java instance.
Referenced by Codemesh.JuggerNET.JuggerNETProxyArray.IsInstanceOf().
|
get |
A property representing a duplicated JNI object handle.
|
get |
The number of elements that the array can hold.
Referenced by Codemesh.JuggerNET.shortArray.operator short[]().
|
get |
The rank (number of dimensions) of the array.
|
get |
The synchronization object for the array (the array itself).