JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Static Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.boolArray Class Reference

The proxy type for the Java type boolean[] More...

Inheritance diagram for Codemesh.JuggerNET.boolArray:
Inheritance graph
[legend]
Collaboration diagram for Codemesh.JuggerNET.boolArray:
Collaboration graph
[legend]

Public Member Functions

 boolArray ()
 Initializes a new instance of the boolArray class to refer to a Java null reference. More...
 
 boolArray (int size)
 Initializes a new instance of the boolArray class to refer to a newly created Java boolean[] of length size. More...
 
 boolArray (JNIHandle jobject)
 Initializes a new instance of the boolArray class to refer to a a preexisting Java boolean[] array represented by jobject. More...
 
boolArray FromNative (bool[] arr)
 A conversion method for the native array type to the proxy array type. More...
 
bool[] ToNative (boolArray arrB)
 A COM entry point for conversion to the native array type. More...
 
override IEnumerator GetEnumerator ()
 Returns an enumerator for the array elements. More...
 
bool Get (int index)
 Returns the value of one array element. More...
 
void Set (int index, bool b)
 Sets the value of one array element. More...
 
- Public Member Functions inherited from Codemesh.JuggerNET.JuggerNETProxyArray
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...
 

Static Public Member Functions

static implicit operator boolArray (bool[] arr)
 A conversion operator for the native array type to the proxy array type. More...
 
static implicit operator bool[] (boolArray arr)
 A conversion operator for the proxy array type to the native array type. More...
 

Properties

override int Rank [get]
 The array's rank; always 1. More...
 
override Type ElementType [get]
 The .NET type of the array elements. More...
 
bool this[int index] [get, set]
 
- Properties inherited from Codemesh.JuggerNET.JuggerNETProxyArray
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...
 

Additional Inherited Members

- Protected Member Functions inherited from Codemesh.JuggerNET.JuggerNETProxyArray
 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...
 
- Static Protected Attributes inherited from Codemesh.JuggerNET.JuggerNETProxyArray
const int BOOLEAN = 2
 
const int BYTE = 4
 
const int CHAR = 8
 
const int DOUBLE = 16
 
const int FLOAT = 32
 
const int INT = 64
 
const int LONG = 128
 
const int SHORT = 256
 
const int OBJECT = 512
 

Detailed Description

The proxy type for the Java type boolean[]

Constructor & Destructor Documentation

◆ boolArray() [1/3]

Codemesh.JuggerNET.boolArray.boolArray ( )
inline

Initializes a new instance of the boolArray class to refer to a Java null reference.

Referenced by Codemesh.JuggerNET.boolArray.operator boolArray().

◆ boolArray() [2/3]

Codemesh.JuggerNET.boolArray.boolArray ( int  size)
inline

Initializes a new instance of the boolArray class to refer to a newly created Java boolean[] of length size.

Parameters
sizethe length of the array.

◆ boolArray() [3/3]

Codemesh.JuggerNET.boolArray.boolArray ( JNIHandle  jobject)
inline

Initializes a new instance of the boolArray class to refer to a a preexisting Java boolean[] array represented by jobject.

Parameters
jobjectthe preexisting Java object reference.

Member Function Documentation

◆ FromNative()

boolArray Codemesh.JuggerNET.boolArray.FromNative ( bool[]  arr)
inline

A conversion method for the native array type to the proxy array type.

Use this function if you have to perform a wholesale conversion of a native .NET array to a Java array. It performs much better than iterating over all elements and copying them one by one. This method is visible to COM clients.

Parameters
arran instance of the native array type
Returns
an instance of the proxy array type

◆ Get()

bool Codemesh.JuggerNET.boolArray.Get ( int  index)
inline

Returns the value of one array element.

Parameters
indexThe 0-based index into the array.
Returns
The element at the specified index.

◆ GetEnumerator()

override IEnumerator Codemesh.JuggerNET.boolArray.GetEnumerator ( )
inlinevirtual

Returns an enumerator for the array elements.

You don't usually call this method directly. It gets invoked when you use certain C# language elements like foreach for example.

Returns

Reimplemented from Codemesh.JuggerNET.JuggerNETProxyArray.

◆ operator bool[]()

static implicit Codemesh.JuggerNET.boolArray.operator bool[] ( boolArray  arr)
inlinestatic

A conversion operator for the proxy array type to the native array type.

Parameters
arran instance of the proxy array type
Returns
an instance of the native array type

◆ operator boolArray()

static implicit Codemesh.JuggerNET.boolArray.operator boolArray ( bool[]  arr)
inlinestatic

A conversion operator for the native array type to the proxy array type.

Use this function if you have to perform a wholesale conversion of a native .NET array to a Java array. It performs much better than iterating over all elements and copying them one by one. This operator is not visible to COM clients, see the boolArray.FromNative(bool[])

method instead if you're writing a COM client.

Parameters
arran instance of the native array type
Returns
an instance of the proxy array type

References Codemesh.JuggerNET.boolArray.boolArray().

◆ Set()

void Codemesh.JuggerNET.boolArray.Set ( int  index,
bool  b 
)
inline

Sets the value of one array element.

Parameters
indexThe 0-based index into the array.
bThe new value for the specified element.

◆ ToNative()

bool [] Codemesh.JuggerNET.boolArray.ToNative ( boolArray  arrB)
inline

A COM entry point for conversion to the native array type.

Use this function if you have to perform a wholesale conversion of a Java array to a native .NET array. It performs much better than iterating over all elements and copying them one by one. This method is visible to COM clients.

Parameters
arrBthe proxy array instance
Returns
the native array

Property Documentation

◆ ElementType

override Type Codemesh.JuggerNET.boolArray.ElementType
get

The .NET type of the array elements.

The .NET type of the array elements.

◆ Rank

override int Codemesh.JuggerNET.boolArray.Rank
get

The array's rank; always 1.

The array's rank; always 1.


The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.