Click or drag to resize

IJavaObject Interface

Interface to directly access all objects allocated from JVM. Provides instance method invocation, field access, and type conversion over the JNI bridge exposed by JCOBridge.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public interface IJavaObject : IJavaObjectBase, 
	IDisposable

The IJavaObject type exposes the following members.

Properties
 NameDescription
Public propertyIsGlobal Returns if this Pointer was set to be a Global reference
(Inherited from IJavaObjectBase)
Public propertyIsNull Returns if this IJavaObjectBase is a null object within the JVM
(Inherited from IJavaObjectBase)
Public propertyJniClassName The JNI class name of this IJavaObjectBase
(Inherited from IJavaObjectBase)
Public propertyJVMType The IJavaType of this IJavaObjectBase
(Inherited from IJavaObjectBase)
Public propertyPointer The native pointer of the object
(Inherited from IJavaObjectBase)
Public propertyReferenceObject The IJavaObject referenced from the instance of IJavaObjectBase, maybe it is null in many conditions
(Inherited from IJavaObjectBase)
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodEquals Checks for the equality between this instance and other
(Inherited from IJavaObjectBase)
Public methodGetField(String) Reads the value of an instance field on the underlying JVM object.
Public methodGetFieldTReturn(String) Reads the value of an instance field on the underlying JVM object and casts it to TReturn.
Public methodHashCode Returns the int value of JVM hashCode
(Inherited from IJavaObjectBase)
Public methodInvoke(String) Invokes an instance method on the underlying JVM object with no arguments.
Public methodInvoke(String, Object) Invokes an instance method on the underlying JVM object with 1 argument.
Public methodInvoke(String, Object) Invokes an instance method on the underlying JVM object using a variable-length argument list. The bridge resolves the target Java method by matching the runtime types of the supplied arguments.
Public methodInvoke(String, Object, Object) Invokes an instance method on the underlying JVM object with 2 arguments.
Public methodInvoke(String, Object, Object, Object) Invokes an instance method on the underlying JVM object with 3 arguments.
Public methodInvoke(String, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 4 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 5 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 6 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 7 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 8 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 9 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 10 arguments.
Public methodInvokeTReturn(String) Invokes an instance method on the underlying JVM object with no arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object) Invokes an instance method on the underlying JVM object with 1 argument and casts the result to TReturn.
Public methodInvokeTReturn(String, Object) Invokes an instance method on the underlying JVM object using a variable-length argument list and casts the result to TReturn. The bridge resolves the target Java method by matching the runtime types of the supplied arguments.
Public methodInvokeTReturn(String, Object, Object) Invokes an instance method on the underlying JVM object with 2 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object) Invokes an instance method on the underlying JVM object with 3 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 4 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 5 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 6 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 7 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 8 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 9 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object with 10 arguments and casts the result to TReturn.
Public methodInvokeWithSignature(String, String) Invokes an instance method on the underlying JVM object using an explicit JNI signature and no arguments.
Public methodInvokeWithSignature(String, String, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 1 argument.
Public methodInvokeWithSignature(String, String, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and a variable-length argument list.
Public methodInvokeWithSignature(String, String, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 2 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 3 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 4 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 5 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 6 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 7 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 8 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 9 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature and 10 arguments.
Public methodInvokeWithSignatureTReturn(String, String) Invokes an instance method on the underlying JVM object using an explicit JNI signature, no arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 1 argument, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, a variable-length argument list, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 2 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 3 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 4 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 5 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 6 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 7 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 8 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 9 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes an instance method on the underlying JVM object using an explicit JNI signature, 10 arguments, and casts the result to TReturn.
Public methodMonitorEnter Enters the monitor associated with the underlying with this IJavaObjectBase
(Inherited from IJavaObjectBase)
Public methodMonitorExit Exits the monitor associated with the underlying with this IJavaObjectBase
(Inherited from IJavaObjectBase)
Public methodNotify Wakes up a single thread that is waiting on this object's monitor.
(Inherited from IJavaObjectBase)
Public methodNotifyAll Wakes up all threads that are waiting on this object's monitor.
(Inherited from IJavaObjectBase)
Public methodSetField Writes a value to an instance field on the underlying JVM object.
Public methodToArray Returns a .NET array containing a copy of the JVM object data.

When called on an IJavaObject instance that represents a JVM array, the returned object is an IJavaArray wrapping the underlying JVM array. When called on an IJavaArray instance, the returned object is a typed .NET array whose element type depends on the underlying JVM primitive or reference type, as described in the returns section below.


(Inherited from IJavaObjectBase)
Public methodToJavaArray Reinterprets this IJavaObject as an IJavaArray reference.
Public methodToPrimitive Converts this IJavaObjectBase to a primitive value.
(Inherited from IJavaObjectBase)
Public methodToString Returns the String representation of this instance
(Inherited from IJavaObjectBase)
Public methodWait Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
(Inherited from IJavaObjectBase)
Public methodWait(Int64) 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.
(Inherited from IJavaObjectBase)
Public methodWait(Int64, Int32) 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.
(Inherited from IJavaObjectBase)
Top
Extension Methods
 NameDescription
Public Extension MethodGetListener Returns the IJVMBridgeBase associated to the JVM reference
(Defined by JCOBridgeExtensions)
Top
See Also