Class JVMBridgeBase
Public entry point of JVMBridgeBase
public abstract class JVMBridgeBase : DynamicObject, IDynamicMetaObjectProvider, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable
- Inheritance
-
JVMBridgeBase
- Implements
- Derived
-
JVMBridgeBase<TClass>
- Inherited Members
- Extension Methods
Constructors
JVMBridgeBase(IJVMBridgeBaseInitializer)
Initializer used internally
public JVMBridgeBase(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializerAn 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
BridgeInstance
The IJavaObject instance
public IJavaObject BridgeInstance { get; }
Property Value
BypassPool
protected virtual bool BypassPool { get; }
Property Value
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
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public virtual bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public virtual bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public virtual bool IsBridgeInterface { get; }
Property Value
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
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public virtual bool IsBridgeStatic { get; }
Property Value
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
argsobject[]The arguments of the
TExceptionconstructor
Type Parameters
TExceptionA 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
TNewClassThe 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
TNewClassThe 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
TNewClassThe 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
TNewClassThe 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
TNewClassThe 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
TNewClassThe 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
Type Parameters
TA 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
Type Parameters
TA type implementing IJVMBridgeBase
ClazzOf(string, bool)
Return the IJavaType associated to the className
public static IJavaType ClazzOf(string className, bool throwOnError = true)
Parameters
classNamestringThe class name for which retrieve IJavaType
throwOnErrorboolThrow exception if the class is not found
Returns
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
classNamestringThe class name for which retrieve IJavaType
exceptionExceptionthrowOnErrorboolThrow the
exceptionif the class is not found
Returns
ClazzOf<TClass>(bool)
Return the IJavaType associated to the TClass
public static IJavaType ClazzOf<TClass>(bool throwOnError = true) where TClass : IJVMBridgeBase
Parameters
throwOnErrorboolThrow exception if the class is not found
Returns
Type Parameters
TClassThe 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
Returns
Type Parameters
TClassThe type implementing IJVMBridgeBase
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Implements the pattern described in https://learn.microsoft.com/en-en/dotnet/standard/garbage-collection/implementing-dispose
protected virtual void Dispose(bool disposing)
Parameters
disposingboolThe 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
otherIJVMBridgeBaseInstanceAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe 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
argsT[]Possible arguments
Type Parameters
TThe 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
methodNamestringThe name of the instance method to invoke.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
IExecute(string, params object[])
Executes an instance method
public object IExecute(string methodName, params object[] args)
Parameters
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
methodNamestringThe name of the instance method to invoke.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the method to execute.
argsobject[]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
TArrayTypeThe 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
methodNamestringThe 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 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
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
methodNamestringThe name of the method to execute.
argsobject[]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
TArrayTypeThe .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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
IExecuteWithSignature(string, string, params object[])
Executes an instance method
public object IExecuteWithSignature(string methodName, string signature, params object[] args)
Parameters
methodNamestringThe instance method to be invoked
signaturestringMethod signature to use in search criteria
argsobject[]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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TArrayType[]
A managed array of
TArrayType, or null if the JVM method returned null.
Type Parameters
TArrayTypeThe 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
methodNamestringThe name of the method to execute.
signaturestringThe JVM method signature used to disambiguate overloads.
argsobject[]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
TArrayTypeThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 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
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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 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
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
methodNamestringThe name of the method to execute.
signaturestringThe JVM method signature used to disambiguate overloads.
argsobject[]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
TArrayTypeThe .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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe instance method to be invoked
signaturestringMethod signature to use in search criteria
argsobject[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
signaturestringThe JNI signature used to resolve the overload.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe instance method to be invoked
signaturestringMethod signature to use in search criteria
argsobject[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClassThe argument type to be used
TReturnThe 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
methodNamestringThe instance method to be invoked
signaturestringMethod signature to use in search criteria
argsobject[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClassThe argument type to be used
TReturnThe return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
TConverterThe converter to be used to convert from
TNewClasstoTReturn
IExecute<TReturn>(string)
Invokes instance method methodName with 0 arguments and converts the result to TReturn.
public TReturn IExecute<TReturn>(string methodName)
Parameters
methodNamestringThe name of the instance method to invoke.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TReturn
The method return value converted to
TReturn, or default for void methods.
Type Parameters
TReturnThe 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
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TReturnThe 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
methodNamestringThe name of the instance method to invoke.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
methodNamestringThe name of the instance method to invoke.
arg0objectArgument 0 passed to the method.
arg1objectArgument 1 passed to the method.
arg2objectArgument 2 passed to the method.
arg3objectArgument 3 passed to the method.
arg4objectArgument 4 passed to the method.
arg5objectArgument 5 passed to the method.
arg6objectArgument 6 passed to the method.
arg7objectArgument 7 passed to the method.
arg8objectArgument 8 passed to the method.
arg9objectArgument 9 passed to the method.
Returns
- TReturn
The method return value wrapped as
TReturn.
Type Parameters
TNewClassThe concrete bridge class used to wrap the JVM result.
TReturnThe return type, which
TNewClassmust 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
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClassThe argument type to be used
TReturnThe 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
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClassThe argument type to be used
TReturnThe return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
TConverterThe converter to be used to convert from
TNewClasstoTReturn
IGetField(string)
Gets the value of a field identified by fieldName
public object IGetField(string fieldName)
Parameters
fieldNamestringThe 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
fieldNamestringThe name of the field to read.
Returns
Type Parameters
TReturnThe 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
fieldNamestringThe 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
TReturnThe .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
fieldNamestringThe field name to read
Returns
- TReturn
The field value expressed as
TReturntype
Type Parameters
TReturnThe 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
ISetField<TValue>(string, TValue)
Sets the value of a field identified by fieldName
public void ISetField<TValue>(string fieldName, TValue val)
Parameters
fieldNamestringThe field name
valTValueThe value to set on the field
Type Parameters
TValueA 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
Returns
IsInstanceOf(string)
Verify if this IJVMBridgeBase is an instance of clazz
public bool IsInstanceOf(string clazz)
Parameters
clazzstringThe class name to be checked
Returns
IsInstanceOf<T>()
Verify if this IJVMBridgeBase is an instance of T
public bool IsInstanceOf<T>() where T : IJVMBridgeBase
Returns
Type Parameters
TA 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
TClassA 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
arg0objectConstructor argument 0.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
arg5objectConstructor argument 5.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
arg5objectConstructor argument 5.
arg6objectConstructor argument 6.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
arg5objectConstructor argument 5.
arg6objectConstructor argument 6.
arg7objectConstructor argument 7.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
arg5objectConstructor argument 5.
arg6objectConstructor argument 6.
arg7objectConstructor argument 7.
arg8objectConstructor argument 8.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
arg0objectConstructor argument 0.
arg1objectConstructor argument 1.
arg2objectConstructor argument 2.
arg3objectConstructor argument 3.
arg4objectConstructor argument 4.
arg5objectConstructor argument 5.
arg6objectConstructor argument 6.
arg7objectConstructor argument 7.
arg8objectConstructor argument 8.
arg9objectConstructor argument 9.
Returns
- TClass
A new fully-initialized instance of
TClass.
Type Parameters
TClassA 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
argsobject[]Arguments to the constructor
Returns
- TClass
The instantiated
TClass
Type Parameters
TClassA 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
o1IJVMBridgeBaseInstanceFirst IJVMBridgeBaseInstance to check
o2IJVMBridgeBaseInstanceSecond IJVMBridgeBaseInstance to check against
o1
Returns
RuntimeClassNameOf(Type)
Retrieve the BridgeClassName of type
public static string RuntimeClassNameOf(Type type)
Parameters
typeTypeThe type implementing IJVMBridgeBase
Returns
- string
The BridgeClassName or null if
typedoes not implement IJVMBridgeBase
RuntimeClassNameOf<T>()
Retrieve the BridgeClassName of T
public static string RuntimeClassNameOf<T>()
Returns
- string
The BridgeClassName or null if
Tdoes not implement IJVMBridgeBase
Type Parameters
TExpected 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
Type Parameters
TA 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
argsobject[]The arguments of the
TExceptionconstructor
Type Parameters
TExceptionA 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
timeoutMillislongThe 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
timeoutMillislongThe maximum time to wait, in milliseconds
nanosintAdditional 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
typeTypeThe Type implementing IJVMBridgeBase to be instantiated
javaObjectIJavaObjectThe BridgeInstance to be used
classNamestringThe name of destination class, null or empty to do not apply class name change
leaveOriginalOpenbooltrue to wraps in a new
typeinstance and leavesjavaObjectalive, false to Dispose() thejavaObject
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
javaObjectIJavaObjectThe IJavaObject to be wrapped from
TNewClass
Returns
- TNewClass
An newly initialized
TNewClass
Type Parameters
TNewClassThe 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
javaObjectIJavaObjectThe BridgeInstance to be used
leaveOriginalOpenbooltrue to wraps in a new
TNewClassinstance and leavesjavaObjectalive, false to Dispose() thejavaObject
Returns
- TNewClass
An newly initialized
TNewClass
Type Parameters
TNewClassThe 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
typeTypeThe Type implementing IJVMBridgeBase to be instantiated
javaObjectIJavaObjectThe BridgeInstance to be used
classNamestringThe name of destination class, null or empty to do not apply class name change
leaveOriginalOpenbooltrue to wraps in a new
TReturninstance and leavesjavaObjectalive, false to Dispose() thejavaObject
Returns
- TReturn
An newly initialized
TReturn
Type Parameters
TReturnThe return type extended or implmeneted from
type: in some condition can be helpful to return a differentTReturn
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
javaObjectIJavaObjectThe BridgeInstance to be used
leaveOriginalOpenbooltrue to wraps in a new
TReturninstance and leavesjavaObjectalive, false to Dispose() thejavaObject
Returns
- TReturn
An newly initialized
TReturn
Type Parameters
TNewClassThe class implementing IJVMBridgeBase
TReturnThe 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
typeTypeThe Type implementing IJVMBridgeBase to be instantiated
javaObjectIJavaObjectThe BridgeInstance to be used
Returns
- TReturn
An newly initialized
TReturn
Type Parameters
TReturnThe return type extended or implemented from
type: in some condition can be helpful to return a differentTReturnTConverterThe converter to be used to convert from instance of
typetoTReturn
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
javaObjectIJavaObjectThe BridgeInstance to be used
leaveOriginalOpenbooltrue to wraps in a new
TReturninstance and leavesjavaObjectalive, false to Dispose() thejavaObject
Returns
- TReturn
An newly initialized
TReturn
Type Parameters
TNewClassThe class implementing IJVMBridgeBase
TReturnThe return type: in some condition can be helpful to return a different
TReturnTConverterThe converter to be used to convert from
TNewClasstoTReturn