JVMBridge |
The JVMBridgeListener type exposes the following members.
| Name | Description | |
|---|---|---|
| JVMBridgeListener | Initialize a new instance of JVMBridgeListener | |
| JVMBridgeListener(IJVMBridgeBaseInitializer) | Initializer used internally | |
| JVMBridgeListener(Object) | Initialize a new instance of JVMBridgeListener |
| Name | Description | |
|---|---|---|
| AutoInit | Set to to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase) | |
| BridgeClassName |
Java class name to be instantiated
(Overrides JVMBridgeBaseBridgeClassName) | |
| BridgeInstance |
The IJavaObject instance
(Inherited from JVMBridgeBase) | |
| DynBridgeInstance |
The dynamic accessor to BridgeInstance (Inherited from JVMBridgeBase) | |
| IsBridgeAbstract | if the BridgeClassName is an abstract class, i.e. cannot be created an instance
(Inherited from JVMBridgeBase) | |
| IsBridgeCloseable | if the BridgeClassName implements Closeable
(Overrides JVMBridgeBaseIsBridgeCloseable) | |
| IsBridgeInterface | if the BridgeClassName is an interface, i.e. does not have any public constructor
(Inherited from JVMBridgeBase) | |
| IsBridgeListener | if the BridgeClassName follows the listener pattern of JCOBridge: the BridgeClassName extends a JCListener or implements IJCListener
(Overrides JVMBridgeBaseIsBridgeListener) | |
| IsBridgeStatic | if the BridgeClassName is a static class, i.e. does not have any public constructor
(Overrides JVMBridgeBaseIsBridgeStatic) |
| Name | Description | |
|---|---|---|
| AddEventHandler(String, EventHandler) | Adds an handler to manage events from JVM | |
| AddEventHandlerTDataClass(String, EventHandlerCLRListenerEventArgsTDataClass) | Adds an handler to manage events from JVM | |
| CastDirectTNewClass |
Simplified version of CastToTNewClass which wraps this instance with a new TNewClass class
(Inherited from JVMBridgeBase) | |
| CastToTNewClass |
Casts this IJVMBridgeBase object into TNewClass (Inherited from JVMBridgeBase) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from JVMBridgeBase) | |
| Dispose(Boolean) |
Implements the pattern described in https://learn.microsoft.com/en-en/dotnet/standard/garbage-collection/implementing-dispose
(Overrides JVMBridgeBaseDispose(Boolean)) | |
| Equals(IJVMBridgeBase) | Indicates whether the current object is equal to another object of the same type. (Inherited from JVMBridgeBase) | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from JVMBridgeBase) | |
| ExecuteT(T) |
Executes the code
(Inherited from JVMBridgeBase) | |
| ExecuteT(T) |
Executes the code
(Inherited from JVMBridgeBaseTClass) | |
| Finalize |
Finalizer
(Inherited from JVMBridgeBase) | |
| GetHashCode | Serves as the default hash function. (Inherited from JVMBridgeBase) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IExecute(String, Object) |
Executes an instance method
(Inherited from JVMBridgeBase) | |
| IExecuteArrayTArrayType |
Execute the method and build the result as an array of TArrayType (Inherited from JVMBridgeBase) | |
| IExecuteWithSignature(String, String, Object) |
Executes an instance method
(Inherited from JVMBridgeBase) | |
| IExecuteWithSignatureArrayTArrayType |
Execute the method and build the result as an array of TArrayType (Inherited from JVMBridgeBase) | |
| IGetField(String) |
Gets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
| IGetFieldArrayTReturn |
Gets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
| IsAssignableFrom(IJavaType) |
Verify if this IJVMBridgeBase is assignable from clazz (Inherited from JVMBridgeBaseTClass) | |
| IsAssignableFrom(String) |
Verify if this IJVMBridgeBase is assignable from clazz (Inherited from JVMBridgeBaseTClass) | |
| IsAssignableFromT |
Verify if this IJVMBridgeBase is assignable from T (Inherited from JVMBridgeBaseTClass) | |
| ISetField(String, Object) |
Sets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
| ISetFieldTValue(String, TValue) |
Sets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
| IsInstanceOf(IJavaType) |
Verify if this IJVMBridgeBase is an instance of clazz (Inherited from JVMBridgeBase) | |
| IsInstanceOf(String) |
Verify if this IJVMBridgeBase is an instance of clazz (Inherited from JVMBridgeBase) | |
| IsInstanceOfT |
Verify if this IJVMBridgeBase is an instance of T (Inherited from JVMBridgeBase) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| MonitorEnter |
Enters the monitor associated with the underlying with this IJVMBridgeBase (Inherited from JVMBridgeBase) | |
| MonitorExit |
Exits the monitor associated with the underlying with this IJVMBridgeBase (Inherited from JVMBridgeBase) | |
| Notify |
Wakes up a single thread that is waiting on this object's monitor.
(Inherited from JVMBridgeBase) | |
| NotifyAll |
Wakes up all threads that are waiting on this object's monitor.
(Inherited from JVMBridgeBase) | |
| RuntimeIsInstanceOfT |
Verify if this IJVMBridgeBase is an instance of T; the constraints of T are checked at runtime, while IsInstanceOfT checks T constraint at compile time
(Inherited from JVMBridgeBase) | |
| ToString | Returns a string that represents the current object. (Inherited from JVMBridgeBase) | |
| Wait |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
(Inherited from JVMBridgeBase) | |
| Wait(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 JVMBridgeBase) | |
| Wait(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 JVMBridgeBase) |
| Name | Description | |
|---|---|---|
| ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions) | |
| ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions) |
public sealed class CLRActionListener : JVMBridgeListener { public override string ClassName { get { return "org.mases.jcobridge.specialized.JCActionListener"; } } // the full name of class, in the JVM counterpart, of the Java class implementing the event public CLRActionListener(EventHandler<CLRListenerEventArgs<CLRActionEventData>> handler) // the handler with the expected type { AddEventHandler("actionPerformed", handler); // allocate the event handler associated to the action the Java interface to be managed in C# } }