Table of Contents

Class JVMBridgeBase

Namespace
MASES.JCOBridge.C2JBridge
Assembly
C2JBridge.dll

Public entry point of JVMBridgeBase

public abstract class JVMBridgeBase : DynamicObject, IDynamicMetaObjectProvider, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable
Inheritance
JVMBridgeBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

JVMBridgeBase(IJVMBridgeBaseInitializer)

Initializer used internally

public JVMBridgeBase(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

An instance of IJVMBridgeBaseInitializer

Remarks

Shall be available in any class inherited from JVMBridgeBase

Properties

BridgeClassName

Java class name to be instantiated

public abstract string BridgeClassName { get; }

Property Value

string

BridgeInstance

The IJavaObject instance

public IJavaObject BridgeInstance { get; }

Property Value

IJavaObject

BypassPool

Override and return true to prevent this instance from being returned to the pool on Dispose().

protected virtual bool BypassPool { get; }

Property Value

bool

DynBridgeInstance

The dynamic accessor to BridgeInstance

public dynamic DynBridgeInstance { get; }

Property Value

dynamic

InitializerInstance

Global accessor to an instance of IJVMBridgeBaseInitializer

public static IJVMBridgeBaseInitializer InitializerInstance { get; }

Property Value

IJVMBridgeBaseInitializer

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public virtual bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public virtual bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public virtual bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeListener

true if the BridgeClassName follows the listener pattern of JCOBridge: the BridgeClassName extends a JCListener or implements IJCListener

public virtual bool IsBridgeListener { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public virtual bool IsBridgeStatic { get; }

Property Value

bool

Methods

BiThrow<TException>(params object[])

Initialize and throw an instance of TException in JVM and then in CLR

public void BiThrow<TException>(params object[] args) where TException : JVMBridgeException

Parameters

args object[]

The arguments of the TException constructor

Type Parameters

TException

A Type extending JVMBridgeException

CastDirectAndDetach<TNewClass>()

Simplified version of CastToAndDetach<TNewClass>() which wraps this instance within a new TNewClass class and detaches BridgeInstance from this instance

public TNewClass CastDirectAndDetach<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

An newly initialized TNewClass

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

Remarks

Use this method with caution since no check on target TNewClass will be made

CastDirectAndDispose<TNewClass>()

Simplified version of CastToAndDispose<TNewClass>() which wraps this instance within a new TNewClass class, detaches BridgeInstance and Dispose() this instance

public TNewClass CastDirectAndDispose<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

An newly initialized TNewClass

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

Remarks

Use this method with caution since no check on target TNewClass will be made

CastDirect<TNewClass>()

Simplified version of CastTo<TNewClass>() which wraps this instance within a new TNewClass class

public TNewClass CastDirect<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

An newly initialized TNewClass

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

Remarks

Use this method with caution since no check on target TNewClass will be made

CastToAndDetach<TNewClass>()

Casts this IJVMBridgeBase object into TNewClass and detaches BridgeInstance from this instance

public TNewClass CastToAndDetach<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

The return value converted to TNewClass

Type Parameters

TNewClass

The return type expected which implements IJVMBridgeBase

Remarks

This method checks the convertibility to TNewClass using CastTo(IJavaObjectBase, string, bool)

CastToAndDispose<TNewClass>()

Casts this IJVMBridgeBase object into TNewClass, detaches BridgeInstance and Dispose() this instance

public TNewClass CastToAndDispose<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

The return value converted to TNewClass

Type Parameters

TNewClass

The return type expected which implements IJVMBridgeBase

Remarks

This method checks the convertibility to TNewClass using CastTo(IJavaObjectBase, string, bool)

CastTo<TNewClass>()

Casts this IJVMBridgeBase object into TNewClass

public TNewClass CastTo<TNewClass>() where TNewClass : IJVMBridgeBase

Returns

TNewClass

The return value converted to TNewClass

Type Parameters

TNewClass

The return type expected which implements IJVMBridgeBase

Remarks

This method checks the convertibility to TNewClass using CastTo(IJavaObjectBase, string, bool)

CheckDisposed()

Test if this instance was disposed

protected void CheckDisposed()

Exceptions

ObjectDisposedException

When this instance was disposed

ClassNameOf<T>()

Retrieve the BridgeClassName of T

public static string ClassNameOf<T>() where T : IJVMBridgeBase

Returns

string

The BridgeClassName

Type Parameters

T

A type implementing IJVMBridgeBase

ClassOf<T>()

Retrieve the IJavaObject of the Java Class class associated to T

public static IJavaObject ClassOf<T>() where T : IJVMBridgeBase

Returns

IJavaObject

The BridgeClassName

Type Parameters

T

A type implementing IJVMBridgeBase

ClazzOf(string, bool)

Return the IJavaType associated to the className

public static IJavaType ClazzOf(string className, bool throwOnError = true)

Parameters

className string

The class name for which retrieve IJavaType

throwOnError bool

Throw exception if the class is not found

Returns

IJavaType

IJavaType associated to className

ClazzOf(string, out Exception, bool)

Return the IJavaType associated to the className

public static IJavaType ClazzOf(string className, out Exception exception, bool throwOnError = false)

Parameters

className string

The class name for which retrieve IJavaType

exception Exception

The Exception raised or null

throwOnError bool

Throw the exception if the class is not found

Returns

IJavaType

IJavaType associated to className

ClazzOf<TClass>(bool)

Return the IJavaType associated to the TClass

public static IJavaType ClazzOf<TClass>(bool throwOnError = true) where TClass : IJVMBridgeBase

Parameters

throwOnError bool

Throw exception if the class is not found

Returns

IJavaType

IJavaType associated to TClass

Type Parameters

TClass

The type implementing IJVMBridgeBase

ClazzOf<TClass>(out Exception, bool)

Return the IJavaType associated to the TClass

public static IJavaType ClazzOf<TClass>(out Exception exception, bool throwOnError = false) where TClass : IJVMBridgeBase

Parameters

exception Exception

The Exception raised or null

throwOnError bool

Throw the exception if the class is not found

Returns

IJavaType

IJavaType associated to TClass

Type Parameters

TClass

The type implementing IJVMBridgeBase

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

The disposing parameter is a bool that indicates whether the method call comes from a Dispose() method (its value is true) or from a finalizer (its value is false)

Equals(IJVMBridgeBaseInstance)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IJVMBridgeBaseInstance other)

Parameters

other IJVMBridgeBaseInstance

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Execute<T>(params T[])

Executes the code

public abstract void Execute<T>(params T[] args)

Parameters

args T[]

Possible arguments

Type Parameters

T

The argument type to be used

~JVMBridgeBase()

Finalizer

protected ~JVMBridgeBase()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IExecute(string)

Invokes instance method methodName with 0 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName)

Parameters

methodName string

The name of the instance method to invoke.

Returns

object

The method return value, or null for void methods.

IExecute(string, object)

Invokes instance method methodName with 1 argument using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object)

Invokes instance method methodName with 2 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object)

Invokes instance method methodName with 3 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object)

Invokes instance method methodName with 4 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecute(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecute(string, params object[])

Executes an instance method

public object IExecute(string methodName, params object[] args)

Parameters

methodName string

The instance method to be invoked

args object[]

Possible arguments

Returns

object

The result of execution. Void functions returns null.

IExecuteArray<TArrayType>(string)

Invokes instance method methodName with 0 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName)

Parameters

methodName string

The name of the instance method to invoke.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object)

Invokes instance method methodName with 1 argument and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object)

Invokes instance method methodName with 2 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object)

Invokes instance method methodName with 3 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object)

Invokes instance method methodName with 4 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteArray<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteArray<TArrayType>(string, params object[])

Executes the method identified by methodName and returns the result as an array of TArrayType.

public TArrayType[] IExecuteArray<TArrayType>(string methodName, params object[] args)

Parameters

methodName string

The name of the method to execute.

args object[]

The arguments to pass to the method.

Returns

TArrayType[]

An array of TArrayType, or null if the method returns null or an empty JVM array reference.

Type Parameters

TArrayType

The expected element type of the returned array. Can be a primitive type, a IJVMBridgeBase implementation, or any other type compatible with the JVM array element type.

IExecuteStream<TArrayType>(string)

Invokes instance method methodName with 0 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object)

Invokes instance method methodName with 1 argument and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object)

Invokes instance method methodName with 2 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object)

Invokes instance method methodName with 3 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object)

Invokes instance method methodName with 4 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteStream<TArrayType>(string, params object[])

Executes the method identified by methodName and returns the result as a JCOBridgeStream<T> backed by the JVM primitive array returned by the method.

public JCOBridgeStream<TArrayType> IExecuteStream<TArrayType>(string methodName, params object[] args) where TArrayType : unmanaged

Parameters

methodName string

The name of the method to execute.

args object[]

The arguments to pass to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> that provides stream access to the JVM array data, or null if the method returns null or an empty JVM array reference. Dispose the returned stream as soon as it is no longer needed.

Type Parameters

TArrayType

The .NET primitive type corresponding to the JVM array element type. Supported types are: bool, byte, short, int, long, float, double and char. Must match the actual JVM array element type; a mismatch throws InvalidOperationException at runtime.

IExecuteWithSignature(string, string)

Invokes instance method methodName with 0 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object)

Invokes instance method methodName with 1 argument using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object)

Invokes instance method methodName with 2 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object)

Invokes instance method methodName with 3 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object)

Invokes instance method methodName with 4 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments using pool-allocated argument storage (zero heap allocation for arities ≤ 10).

public object IExecuteWithSignature(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

object

The method return value, or null for void methods.

IExecuteWithSignature(string, string, params object[])

Executes an instance method

public object IExecuteWithSignature(string methodName, string signature, params object[] args)

Parameters

methodName string

The instance method to be invoked

signature string

Method signature to use in search criteria

args object[]

Possible arguments

Returns

object

The result of execution. Void functions returns null.

IExecuteWithSignatureArray<TArrayType>(string, string)

Invokes instance method methodName with 0 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object)

Invokes instance method methodName with 1 argument and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object)

Invokes instance method methodName with 2 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object)

Invokes instance method methodName with 3 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object)

Invokes instance method methodName with 4 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and returns the JVM array result as a managed TArrayType[].

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TArrayType[]

A managed array of TArrayType, or null if the JVM method returned null.

Type Parameters

TArrayType

The element type of the returned array.

IExecuteWithSignatureArray<TArrayType>(string, string, params object[])

Executes the method identified by methodName and signature and returns the result as an array of TArrayType.

public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, params object[] args)

Parameters

methodName string

The name of the method to execute.

signature string

The JVM method signature used to disambiguate overloads.

args object[]

The arguments to pass to the method.

Returns

TArrayType[]

An array of TArrayType, or null if the method returns null or an empty JVM array reference.

Type Parameters

TArrayType

The expected element type of the returned array. Can be a primitive type, a IJVMBridgeBase implementation, or any other type compatible with the JVM array element type.

IExecuteWithSignatureStream<TArrayType>(string, string)

Invokes instance method methodName with 0 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object)

Invokes instance method methodName with 1 argument and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object)

Invokes instance method methodName with 2 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object)

Invokes instance method methodName with 3 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object)

Invokes instance method methodName with 4 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and returns a zero-copy JCOBridgeStream<T> over the JVM primitive array result.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9) where TArrayType : unmanaged

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> backed by native JVM memory, or null. Dispose as soon as no longer needed.

Type Parameters

TArrayType

The .NET primitive type matching the JVM array element type (byte, int, long, etc.).

IExecuteWithSignatureStream<TArrayType>(string, string, params object[])

Executes the method identified by methodName and signature and returns the result as a JCOBridgeStream<T> backed by the JVM primitive array returned by the method.

public JCOBridgeStream<TArrayType> IExecuteWithSignatureStream<TArrayType>(string methodName, string signature, params object[] args) where TArrayType : unmanaged

Parameters

methodName string

The name of the method to execute.

signature string

The JVM method signature used to disambiguate overloads.

args object[]

The arguments to pass to the method.

Returns

JCOBridgeStream<TArrayType>

A JCOBridgeStream<T> that provides stream access to the JVM array data, or null if the method returns null or an empty JVM array reference. Dispose the returned stream as soon as it is no longer needed.

Type Parameters

TArrayType

The .NET primitive type corresponding to the JVM array element type. Supported types are: bool, byte, short, int, long, float, double and char. Must match the actual JVM array element type; a mismatch throws InvalidOperationException at runtime.

IExecuteWithSignature<TReturn>(string, string)

Invokes instance method methodName with 0 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object)

Invokes instance method methodName with 1 argument and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object)

Invokes instance method methodName with 2 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object)

Invokes instance method methodName with 3 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object)

Invokes instance method methodName with 4 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and converts the result to TReturn.

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecuteWithSignature<TReturn>(string, string, params object[])

Executes an instance method

public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, params object[] args)

Parameters

methodName string

The instance method to be invoked

signature string

Method signature to use in search criteria

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

IExecuteWithSignature<TNewClass, TReturn>(string, string)

Invokes instance method methodName with 0 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object)

Invokes instance method methodName with 1 argument, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object)

Invokes instance method methodName with 2 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object)

Invokes instance method methodName with 3 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object)

Invokes instance method methodName with 4 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

signature string

The JNI signature used to resolve the overload.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecuteWithSignature<TNewClass, TReturn>(string, string, params object[])

Executes an instance method

public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, params object[] args) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The instance method to be invoked

signature string

Method signature to use in search criteria

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TNewClass

The argument type to be used

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])

Executes an instance method

public TReturn IExecuteWithSignature<TNewClass, TReturn, TConverter>(string methodName, string signature, params object[] args) where TNewClass : IJVMBridgeBase, TReturn where TConverter : IJVMBridgeBaseConvert<TNewClass, TReturn>, new()

Parameters

methodName string

The instance method to be invoked

signature string

Method signature to use in search criteria

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TNewClass

The argument type to be used

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

TConverter

The converter to be used to convert from TNewClass to TReturn

IExecute<TReturn>(string)

Invokes instance method methodName with 0 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName)

Parameters

methodName string

The name of the instance method to invoke.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object)

Invokes instance method methodName with 1 argument and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object)

Invokes instance method methodName with 2 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object)

Invokes instance method methodName with 3 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object)

Invokes instance method methodName with 4 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments and converts the result to TReturn.

public TReturn IExecute<TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9)

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TReturn

The method return value converted to TReturn, or default for void methods.

Type Parameters

TReturn

The expected return type: a IJVMBridgeBase subclass, IJavaObject, Enum, or a primitive type.

IExecute<TReturn>(string, params object[])

Executes an instance method

public TReturn IExecute<TReturn>(string methodName, params object[] args)

Parameters

methodName string

The instance method to be invoked

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

IExecute<TNewClass, TReturn>(string)

Invokes instance method methodName with 0 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object)

Invokes instance method methodName with 1 argument, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object)

Invokes instance method methodName with 2 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object)

Invokes instance method methodName with 3 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object)

Invokes instance method methodName with 4 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object)

Invokes instance method methodName with 5 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object, object)

Invokes instance method methodName with 6 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object, object, object)

Invokes instance method methodName with 7 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 8 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 9 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, object, object, object, object, object, object, object, object, object, object)

Invokes instance method methodName with 10 arguments, wrapping the result in TNewClass and returning it as TReturn.

public TReturn IExecute<TNewClass, TReturn>(string methodName, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The name of the instance method to invoke.

arg0 object

Argument 0 passed to the method.

arg1 object

Argument 1 passed to the method.

arg2 object

Argument 2 passed to the method.

arg3 object

Argument 3 passed to the method.

arg4 object

Argument 4 passed to the method.

arg5 object

Argument 5 passed to the method.

arg6 object

Argument 6 passed to the method.

arg7 object

Argument 7 passed to the method.

arg8 object

Argument 8 passed to the method.

arg9 object

Argument 9 passed to the method.

Returns

TReturn

The method return value wrapped as TReturn.

Type Parameters

TNewClass

The concrete bridge class used to wrap the JVM result.

TReturn

The return type, which TNewClass must implement.

IExecute<TNewClass, TReturn>(string, params object[])

Executes an instance method

public TReturn IExecute<TNewClass, TReturn>(string methodName, params object[] args) where TNewClass : IJVMBridgeBase, TReturn

Parameters

methodName string

The instance method to be invoked

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TNewClass

The argument type to be used

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

IExecute<TNewClass, TReturn, TConverter>(string, params object[])

Executes an instance method

public TReturn IExecute<TNewClass, TReturn, TConverter>(string methodName, params object[] args) where TNewClass : IJVMBridgeBase, TReturn where TConverter : IJVMBridgeBaseConvert<TNewClass, TReturn>, new()

Parameters

methodName string

The instance method to be invoked

args object[]

Possible arguments

Returns

TReturn

The result of execution. Void functions returns default.

Type Parameters

TNewClass

The argument type to be used

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

TConverter

The converter to be used to convert from TNewClass to TReturn

IGetField(string)

Gets the value of a field identified by fieldName

public object IGetField(string fieldName)

Parameters

fieldName string

The field name to read

Returns

object

The field value

IGetFieldArray<TReturn>(string)

Gets the value of the field identified by fieldName and returns its content as an array of TReturn.

public TReturn[] IGetFieldArray<TReturn>(string fieldName)

Parameters

fieldName string

The name of the field to read.

Returns

TReturn[]

An array of TReturn, or null if the field contains null or an empty JVM array reference.

Type Parameters

TReturn

The expected element type of the returned array. Can be a primitive type, a IJVMBridgeBase implementation, or any other type compatible with the JVM array element type.

IGetFieldStream<TReturn>(string)

Reads the field identified by fieldName and returns its value as a JCOBridgeStream<T> backed by the JVM primitive array stored in the field.

public JCOBridgeStream<TReturn> IGetFieldStream<TReturn>(string fieldName) where TReturn : unmanaged

Parameters

fieldName string

The name of the field to read.

Returns

JCOBridgeStream<TReturn>

A JCOBridgeStream<T> that provides stream access to the JVM array data, or null if the field contains null or an empty JVM array reference. Dispose the returned stream as soon as it is no longer needed.

Type Parameters

TReturn

The .NET primitive type corresponding to the JVM array element type. Supported types are: bool, byte, short, int, long, float, double and char. Must match the actual JVM array element type; a mismatch throws InvalidOperationException at runtime.

IGetField<TReturn>(string)

Gets the value of a field identified by fieldName

public TReturn IGetField<TReturn>(string fieldName)

Parameters

fieldName string

The field name to read

Returns

TReturn

The field value expressed as TReturn type

Type Parameters

TReturn

The return type expected: a type inherited from IJVMBridgeBase, IJavaObject, Enum or primitive types

ISetField(string, object)

Sets the value of a field identified by fieldName

public void ISetField(string fieldName, object val)

Parameters

fieldName string

The field name

val object

The value to set on the field

ISetField<TValue>(string, TValue)

Sets the value of a field identified by fieldName

public void ISetField<TValue>(string fieldName, TValue val)

Parameters

fieldName string

The field name

val TValue

The value to set on the field

Type Parameters

TValue

A type inherited from IJVMBridgeBase, IJavaObject, Enum or primitive types

IsInstanceOf(IJavaType)

Verify if this IJVMBridgeBase is an instance of clazz

public bool IsInstanceOf(IJavaType clazz)

Parameters

clazz IJavaType

The IJavaType to be checked

Returns

bool

true if clazz is an instance of clazz, otherwise false

IsInstanceOf(string)

Verify if this IJVMBridgeBase is an instance of clazz

public bool IsInstanceOf(string clazz)

Parameters

clazz string

The class name to be checked

Returns

bool

true if clazz is an instance of clazz, otherwise false

IsInstanceOf<T>()

Verify if this IJVMBridgeBase is an instance of T

public bool IsInstanceOf<T>() where T : IJVMBridgeBase

Returns

bool

true if T is an instance of T, otherwise false

Type Parameters

T

A type implementing IJVMBridgeBase

MonitorEnter()

Enters the monitor associated with the underlying with this IJVMBridgeBase

public void MonitorEnter()

Remarks

Each Java object has a monitor associated with it. If the current thread already owns the monitor associated with IJVMBridgeBase, the JVM increments a counter in the monitor indicating the number of times this thread has entered the monitor. If the monitor associated with IJVMBridgeBase is not owned by any thread, the current thread becomes the owner of the monitor, setting the entry count of this monitor to 1. If another thread already owns the monitor associated with obj, the current thread waits until the monitor is released, then tries again to gain ownership.

 A monitor entered through a <xref href="MASES.JCOBridge.C2JBridge.IJVMBridgeBase.MonitorEnter" data-throw-if-not-resolved="false"></xref> function call cannot be exited using the monitorexit Java virtual machine instruction or a synchronized method return.
 A <xref href="MASES.JCOBridge.C2JBridge.IJVMBridgeBase.MonitorEnter" data-throw-if-not-resolved="false"></xref> function call and a monitorenter Java virtual machine instruction may race to enter the monitor associated with the same object.
 To avoid deadlocks, a monitor entered through a <xref href="MASES.JCOBridge.C2JBridge.IJVMBridgeBase.MonitorEnter" data-throw-if-not-resolved="false"></xref> function call must be exited using the <xref href="MASES.JCOBridge.C2JBridge.IJVMBridgeBase.MonitorExit" data-throw-if-not-resolved="false"></xref> call, unless the DetachCurrentThread call is used to implicitly release JNI monitors.

MonitorExit()

Exits the monitor associated with the underlying with this IJVMBridgeBase

public void MonitorExit()

Remarks

The current thread must be the owner of the monitor associated with the underlying Java object referred to by IJVMBridgeBase. The thread decrements the counter indicating the number of times it has entered this monitor. If the value of the counter becomes zero, the current thread releases the monitor. Native code must not use MonitorExit() to exit a monitor entered through a synchronized method or a monitorenter Java virtual machine instruction.

New<TClass>()

Creates a new JVM instance of TClass with no arguments.

public static TClass New<TClass>() where TClass : IJVMBridgeBase

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object)

Creates a new JVM instance of TClass with 1 argument.

public static TClass New<TClass>(object arg0) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object)

Creates a new JVM instance of TClass with 2 arguments.

public static TClass New<TClass>(object arg0, object arg1) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object)

Creates a new JVM instance of TClass with 3 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object)

Creates a new JVM instance of TClass with 4 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object)

Creates a new JVM instance of TClass with 5 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object, object)

Creates a new JVM instance of TClass with 6 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

arg5 object

Constructor argument 5.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object, object, object)

Creates a new JVM instance of TClass with 7 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

arg5 object

Constructor argument 5.

arg6 object

Constructor argument 6.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object, object, object, object)

Creates a new JVM instance of TClass with 8 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

arg5 object

Constructor argument 5.

arg6 object

Constructor argument 6.

arg7 object

Constructor argument 7.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object, object, object, object, object)

Creates a new JVM instance of TClass with 9 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

arg5 object

Constructor argument 5.

arg6 object

Constructor argument 6.

arg7 object

Constructor argument 7.

arg8 object

Constructor argument 8.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(object, object, object, object, object, object, object, object, object, object)

Creates a new JVM instance of TClass with 10 arguments.

public static TClass New<TClass>(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9) where TClass : IJVMBridgeBase

Parameters

arg0 object

Constructor argument 0.

arg1 object

Constructor argument 1.

arg2 object

Constructor argument 2.

arg3 object

Constructor argument 3.

arg4 object

Constructor argument 4.

arg5 object

Constructor argument 5.

arg6 object

Constructor argument 6.

arg7 object

Constructor argument 7.

arg8 object

Constructor argument 8.

arg9 object

Constructor argument 9.

Returns

TClass

A new fully-initialized instance of TClass.

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

New<TClass>(params object[])

Create a new instance of the TClass

public static TClass New<TClass>(params object[] args) where TClass : IJVMBridgeBase

Parameters

args object[]

Arguments to the constructor

Returns

TClass

The instantiated TClass

Type Parameters

TClass

A class inherited from JVMBridgeBase<TClass>

Notify()

Wakes up a single thread that is waiting on this object's monitor.

public void Notify()

NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

public void NotifyAll()

ReferenceEqualsJVM(IJVMBridgeBaseInstance, IJVMBridgeBaseInstance)

Check if the o1 instance is the same reference of o2 in the JVM

public static bool ReferenceEqualsJVM(IJVMBridgeBaseInstance o1, IJVMBridgeBaseInstance o2)

Parameters

o1 IJVMBridgeBaseInstance

First IJVMBridgeBaseInstance to check

o2 IJVMBridgeBaseInstance

Second IJVMBridgeBaseInstance to check against o1

Returns

bool

true if o1 and o2 are the same object in the JVM, otherwise false

RuntimeClassNameOf(Type)

Retrieve the BridgeClassName of type

public static string RuntimeClassNameOf(Type type)

Parameters

type Type

The type implementing IJVMBridgeBase

Returns

string

The BridgeClassName or null if type does not implement IJVMBridgeBase

RuntimeClassNameOf<T>()

Retrieve the BridgeClassName of T

public static string RuntimeClassNameOf<T>()

Returns

string

The BridgeClassName or null if T does not implement IJVMBridgeBase

Type Parameters

T

Expected a type implementing IJVMBridgeBase

RuntimeIsInstanceOf<T>()

Verify if this IJVMBridgeBase is an instance of T; the constraints of T are checked at runtime, while IsInstanceOf<T>() checks T constraint at compile time

public bool RuntimeIsInstanceOf<T>()

Returns

bool

true if T is an instance of T, otherwise false

Type Parameters

T

A type implementing IJVMBridgeBase

Throw<TException>(params object[])

Initialize and throw an instance of TException in JVM

public void Throw<TException>(params object[] args) where TException : JVMBridgeException

Parameters

args object[]

The arguments of the TException constructor

Type Parameters

TException

A Type extending JVMBridgeException

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

public void Wait()

Wait(long)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

public void Wait(long timeoutMillis)

Parameters

timeoutMillis long

The maximum time to wait, in milliseconds

Wait(long, int)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

public void Wait(long timeoutMillis, int nanos)

Parameters

timeoutMillis long

The maximum time to wait, in milliseconds

nanos int

Additional time, in nanoseconds, in the range range 0-999999 inclusive

Wraps(Type, IJavaObject, string, bool)

Wraps the javaObject with a new type class

public static IJVMBridgeBase Wraps(Type type, IJavaObject javaObject, string className, bool leaveOriginalOpen = true)

Parameters

type Type

The Type implementing IJVMBridgeBase to be instantiated

javaObject IJavaObject

The BridgeInstance to be used

className string

The name of destination class, null or empty to do not apply class name change

leaveOriginalOpen bool

true to wraps in a new type instance and leaves javaObject alive, false to Dispose() the javaObject

Returns

IJVMBridgeBase

A newly initialized type

WrapsDirect<TNewClass>(IJavaObject)

Simplified version of Wraps<TNewClass>(IJavaObject, bool) which wraps the javaObject with a new TNewClass class

public static TNewClass WrapsDirect<TNewClass>(IJavaObject javaObject) where TNewClass : IJVMBridgeBase

Parameters

javaObject IJavaObject

The IJavaObject to be wrapped from TNewClass

Returns

TNewClass

An newly initialized TNewClass

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

Wraps<TNewClass>(IJavaObject, bool)

Wraps the javaObject with a new TNewClass class

public static TNewClass Wraps<TNewClass>(IJavaObject javaObject, bool leaveOriginalOpen = true)

Parameters

javaObject IJavaObject

The BridgeInstance to be used

leaveOriginalOpen bool

true to wraps in a new TNewClass instance and leaves javaObject alive, false to Dispose() the javaObject

Returns

TNewClass

An newly initialized TNewClass

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

Wraps<TReturn>(Type, IJavaObject, string, bool)

Wraps the javaObject with a new type class

public static TReturn Wraps<TReturn>(Type type, IJavaObject javaObject, string className, bool leaveOriginalOpen = true)

Parameters

type Type

The Type implementing IJVMBridgeBase to be instantiated

javaObject IJavaObject

The BridgeInstance to be used

className string

The name of destination class, null or empty to do not apply class name change

leaveOriginalOpen bool

true to wraps in a new TReturn instance and leaves javaObject alive, false to Dispose() the javaObject

Returns

TReturn

An newly initialized TReturn

Type Parameters

TReturn

The return type extended or implmeneted from type: in some condition can be helpful to return a different TReturn

Wraps<TNewClass, TReturn>(IJavaObject, bool)

Wraps the javaObject with a new TNewClass class

public static TReturn Wraps<TNewClass, TReturn>(IJavaObject javaObject, bool leaveOriginalOpen = true)

Parameters

javaObject IJavaObject

The BridgeInstance to be used

leaveOriginalOpen bool

true to wraps in a new TReturn instance and leaves javaObject alive, false to Dispose() the javaObject

Returns

TReturn

An newly initialized TReturn

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

TReturn

The return type: in some condition can be helpful to return a different TReturn

Wraps<TReturn, TConverter>(Type, IJavaObject)

Wraps the javaObject with a new type class

public static TReturn Wraps<TReturn, TConverter>(Type type, IJavaObject javaObject) where TConverter : IJVMBridgeBaseConvert<object, TReturn>, new()

Parameters

type Type

The Type implementing IJVMBridgeBase to be instantiated

javaObject IJavaObject

The BridgeInstance to be used

Returns

TReturn

An newly initialized TReturn

Type Parameters

TReturn

The return type extended or implemented from type: in some condition can be helpful to return a different TReturn

TConverter

The converter to be used to convert from instance of type to TReturn

Wraps<TNewClass, TReturn, TConverter>(IJavaObject, bool)

Wraps the javaObject with a new TNewClass class

public static TReturn Wraps<TNewClass, TReturn, TConverter>(IJavaObject javaObject, bool leaveOriginalOpen = true) where TNewClass : IJVMBridgeBase where TConverter : IJVMBridgeBaseConvert<TNewClass, TReturn>, new()

Parameters

javaObject IJavaObject

The BridgeInstance to be used

leaveOriginalOpen bool

true to wraps in a new TReturn instance and leaves javaObject alive, false to Dispose() the javaObject

Returns

TReturn

An newly initialized TReturn

Type Parameters

TNewClass

The class implementing IJVMBridgeBase

TReturn

The return type: in some condition can be helpful to return a different TReturn

TConverter

The converter to be used to convert from TNewClass to TReturn