Click or drag to resize

JVMBridgeMainTClass Class

Execute directly the class implementing the Java "main" method
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    MASES.JCOBridge.C2JBridgeJVMBridgeBase
      MASES.JCOBridge.C2JBridgeJVMBridgeMainTClass

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.7.230503-5b2d77f31cef8c4bcaa15ef3ad392561e9e38aa6
Syntax
public class JVMBridgeMain<TClass> : JVMBridgeBase
where TClass : new(), IJVMBridgeBase

Type Parameters

TClass
The class inherited from JVMBridgeBase

The JVMBridgeMainTClass type exposes the following members.

Constructors
 NameDescription
Public methodJVMBridgeMainTClass Initialize a new JVMBridgeBase
Top
Properties
 NameDescription
Public propertyBridgeClassName Java class name to be instantiated
(Overrides JVMBridgeBaseBridgeClassName)
Public propertyBridgeInstance The IJavaObject instance
(Inherited from JVMBridgeBase)
Public propertyStatic memberClazz The Java Class accessor
Public propertyDynBridgeInstance The dynamic accessor to BridgeInstance
(Inherited from JVMBridgeBase)
Public propertyStatic memberDynClazz The Java Class dynamic accessor
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 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
(Overrides JVMBridgeBaseExecuteT(T))
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 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 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 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 JVMBridgeMainTClass class usage
C#
class MainClass : JVMBridgeMain<MainClass>
{
    public MainClass()
        : base("org.company.MainClass")
    {
    }
}
See Also