Click or drag to resize

JVMBridgeBaseTClass, TInterface Class

Public entry point of JVMBridgeBaseTClass
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    MASES.JCOBridge.C2JBridgeJVMBridgeBase
      MASES.JCOBridge.C2JBridgeJVMBridgeBaseTClass
        MASES.JCOBridge.C2JBridgeJVMBridgeBaseTClass, TInterface

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.21.241219-a6a144ea07c497c3a9a1be842408e852afb458be
Syntax
public abstract class JVMBridgeBase<TClass, TInterface> : JVMBridgeBase<TClass>
where TClass : new(), TInterface, IJVMBridgeBase

Type Parameters

TClass
A class inherited from JVMBridgeBaseTClass
TInterface
An interface the class shall inherit from

The JVMBridgeBaseTClass, TInterface type exposes the following members.

Constructors
 NameDescription
Public methodJVMBridgeBaseTClass, TInterface Used to create instance of BridgeClassName
Public methodJVMBridgeBaseTClass, TInterface(Object) Used to create instance of BridgeClassName
Top
Properties
 NameDescription
Public propertyBridgeClassName Java class name to be instantiated
(Inherited from JVMBridgeBase)
Public propertyBridgeInstance The IJavaObject instance
(Inherited from JVMBridgeBase)
Public propertyDynBridgeInstance The dynamic accessor to BridgeInstance
(Inherited from JVMBridgeBase)
Public propertyIsBridgeAbstract if the BridgeClassName is an abstract class, i.e. cannot be created an instance
(Inherited from JVMBridgeBase)
Public propertyIsBridgeCloseable if the BridgeClassName implements Closeable
(Inherited from JVMBridgeBase)
Public propertyIsBridgeInterface if the BridgeClassName is an interface, i.e. does not have any public constructor
(Inherited from JVMBridgeBase)
Public propertyIsBridgeListener if the BridgeClassName follows the listener pattern of JCOBridge: the BridgeClassName extends a JCListener or implements IJCListener
(Inherited from JVMBridgeBase)
Public propertyIsBridgeStatic if the BridgeClassName is a static class, i.e. does not have any public constructor
(Inherited from JVMBridgeBase)
Top
Methods
 NameDescription
Public methodCastDirectTNewClass Simplified version of CastToTNewClass which wraps this instance with a new TNewClass class
(Inherited from JVMBridgeBase)
Public methodCastToTNewClass Casts this IJVMBridgeBase object into TNewClass
(Inherited from JVMBridgeBase)
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from JVMBridgeBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from JVMBridgeBase)
Public methodExecuteT(T) Executes the code
(Inherited from JVMBridgeBase)
Public methodExecuteT(T) Executes the code
(Inherited from JVMBridgeBaseTClass)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from JVMBridgeBase)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIExecute(String, Object) Executes an instance method
(Inherited from JVMBridgeBase)
Public methodIExecuteArrayT Execute the method and build the result as an array of T
(Inherited from JVMBridgeBase)
Public methodIExecuteWithSignature(String, String, Object) Executes an instance method
(Inherited from JVMBridgeBase)
Public methodIExecuteWithSignatureArrayT Execute the method and build the result as an array of T
(Inherited from JVMBridgeBase)
Public methodIGetField(String) Gets the value of a field identified by fieldName
(Inherited from JVMBridgeBase)
Public methodIGetFieldArrayTReturn Gets the value of a field identified by fieldName
(Inherited from JVMBridgeBase)
Public methodIsAssignableFrom(IJavaType) Verify if this IJVMBridgeBase is assignable from clazz
(Inherited from JVMBridgeBaseTClass)
Public methodIsAssignableFrom(String) Verify if this IJVMBridgeBase is assignable from clazz
(Inherited from JVMBridgeBaseTClass)
Public methodIsAssignableFromT Verify if this IJVMBridgeBase is assignable from T
(Inherited from JVMBridgeBaseTClass)
Public methodISetField(String, Object) Sets the value of a field identified by fieldName
(Inherited from JVMBridgeBase)
Public methodISetFieldTValue(String, TValue) Sets the value of a field identified by fieldName
(Inherited from JVMBridgeBase)
Public methodIsInstanceOf(IJavaType) Verify if this IJVMBridgeBase is an instance of clazz
(Inherited from JVMBridgeBase)
Public methodIsInstanceOf(String) Verify if this IJVMBridgeBase is an instance of clazz
(Inherited from JVMBridgeBase)
Public methodIsInstanceOfT Verify if this IJVMBridgeBase is an instance of T
(Inherited from JVMBridgeBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMonitorEnter Enters the monitor associated with the underlying with this IJVMBridgeBase
(Inherited from JVMBridgeBase)
Public methodMonitorExit Exits the monitor associated with the underlying with this IJVMBridgeBase
(Inherited from JVMBridgeBase)
Public methodNotify Wakes up a single thread that is waiting on this object's monitor.
(Inherited from JVMBridgeBase)
Public methodNotifyAll Wakes up all threads that are waiting on this object's monitor.
(Inherited from JVMBridgeBase)
Public methodRuntimeIsInstanceOfT 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)
Public methodToStringReturns a string that represents the current object.
(Inherited from JVMBridgeBase)
Public methodWait Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
(Inherited from JVMBridgeBase)
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 JVMBridgeBase)
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 JVMBridgeBase)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Example
This is a basic example showing JVMBridgeBaseTClass class usage
C#
class TheClass : JVMBridgeBase<TheClass>
{
    public override string BridgeClassName => "org.company.TheClass";

    public TheClass()
    {
    }
}
See Also