Click or drag to resize

JVMBridgeCoreTClass, TInterface Class

Public entry point of JVMBridgeCoreTClass
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    MASES.JCOBridge.C2JBridgeJVMBridgeCore
      MASES.JCOBridge.C2JBridgeJVMBridgeCoreTClass
        MASES.JCOBridge.C2JBridgeJVMBridgeCoreTClass, TInterface
          MASES.JCOBridge.C2JBridgeJVMBridgeBaseTClass, TInterface

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.8.260410-ed5cc0c79218460f1e6b936e4bd65778f0bb23e9
Syntax
public abstract class JVMBridgeCore<TClass, TInterface> : JVMBridgeCore<TClass>
where TClass : TInterface, IJVMBridgeBase

Type Parameters

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

The JVMBridgeCoreTClass, TInterface type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyBridgeClassName Java class name to be instantiated
(Inherited from JVMBridgeCore)
Public propertyBridgeInstance The IJavaObject instance
(Inherited from JVMBridgeCore)
Public propertyDynBridgeInstance The dynamic accessor to BridgeInstance
(Inherited from JVMBridgeCore)
Public propertyIsBridgeAbstract if the BridgeClassName is an abstract class, i.e. cannot be created an instance
(Inherited from JVMBridgeCore)
Public propertyIsBridgeCloseable if the BridgeClassName implements Closeable
(Inherited from JVMBridgeCore)
Public propertyIsBridgeInterface if the BridgeClassName is an interface, i.e. does not have any public constructor
(Inherited from JVMBridgeCore)
Public propertyIsBridgeListener if the BridgeClassName follows the listener pattern of JCOBridge: the BridgeClassName extends a JCListener or implements IJCListener
(Inherited from JVMBridgeCore)
Public propertyIsBridgeStatic if the BridgeClassName is a static class, i.e. does not have any public constructor
(Inherited from JVMBridgeCore)
Top
Methods
 NameDescription
Public methodBiThrowTException Initialize and throw an instance of TException in JVM and then in CLR
(Inherited from JVMBridgeCore)
Public methodCastDirectTNewClass Simplified version of CastToTNewClass which wraps this instance with a new TNewClass class
(Inherited from JVMBridgeCore)
Public methodCastToTNewClass Casts this IJVMBridgeBase object into TNewClass
(Inherited from JVMBridgeCore)
Public methodEquals(IJVMBridgeBase)Indicates whether the current object is equal to another object of the same type.
(Inherited from JVMBridgeCore)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from JVMBridgeCore)
Public methodExecuteT(T) Executes the code
(Inherited from JVMBridgeCore)
Public methodExecuteT(T) Executes the code
(Inherited from JVMBridgeCoreTClass)
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 JVMBridgeCore)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIExecute(String, Object) Executes an instance method
(Inherited from JVMBridgeCore)
Public methodIExecuteArrayTArrayType Execute the method and build the result as an array of TArrayType
(Inherited from JVMBridgeCore)
Public methodIExecuteWithSignature(String, String, Object) Executes an instance method
(Inherited from JVMBridgeCore)
Public methodIExecuteWithSignatureArrayTArrayType Execute the method and build the result as an array of TArrayType
(Inherited from JVMBridgeCore)
Public methodIGetField(String) Gets the value of a field identified by fieldName
(Inherited from JVMBridgeCore)
Public methodIGetFieldArrayTReturn Gets the value of a field identified by fieldName
(Inherited from JVMBridgeCore)
Public methodIsAssignableFrom(IJavaType) Verify if this IJVMBridgeBase is assignable from clazz
(Inherited from JVMBridgeCoreTClass)
Public methodIsAssignableFrom(String) Verify if this IJVMBridgeBase is assignable from clazz
(Inherited from JVMBridgeCoreTClass)
Public methodIsAssignableFromT Verify if this IJVMBridgeBase is assignable from T
(Inherited from JVMBridgeCoreTClass)
Public methodISetField(String, Object) Sets the value of a field identified by fieldName
(Inherited from JVMBridgeCore)
Public methodISetFieldTValue(String, TValue) Sets the value of a field identified by fieldName
(Inherited from JVMBridgeCore)
Public methodIsInstanceOf(IJavaType) Verify if this IJVMBridgeBase is an instance of clazz
(Inherited from JVMBridgeCore)
Public methodIsInstanceOf(String) Verify if this IJVMBridgeBase is an instance of clazz
(Inherited from JVMBridgeCore)
Public methodIsInstanceOfT Verify if this IJVMBridgeBase is an instance of T
(Inherited from JVMBridgeCore)
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 JVMBridgeCore)
Public methodMonitorExit Exits the monitor associated with the underlying with this IJVMBridgeBase
(Inherited from JVMBridgeCore)
Public methodNotify Wakes up a single thread that is waiting on this object's monitor.
(Inherited from JVMBridgeCore)
Public methodNotifyAll Wakes up all threads that are waiting on this object's monitor.
(Inherited from JVMBridgeCore)
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 JVMBridgeCore)
Public methodThrowTException Initialize and throw an instance of TException in JVM
(Inherited from JVMBridgeCore)
Public methodToStringReturns a string that represents the current object.
(Inherited from JVMBridgeCore)
Public methodWait Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
(Inherited from JVMBridgeCore)
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 JVMBridgeCore)
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 JVMBridgeCore)
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 JVMBridgeCoreTClass class usage
C#
class TheClass : JVMBridgeCore<TheClass>
{
    public override string BridgeClassName => "org.company.TheClass";

    public TheClass()
    {
    }
}
See Also