Click or drag to resize

JVMBridgeCoreTClass Class

Public entry point of JVMBridgeCoreTClass
Inheritance Hierarchy

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

Type Parameters

TClass
A class inherited from JVMBridgeCoreTClass

The JVMBridgeCoreTClass type exposes the following members.

Constructors
 NameDescription
Public methodJVMBridgeCoreTClass(IJVMBridgeBaseInitializer) Initializer used internally
Public methodJVMBridgeCoreTClass(Object) Used to create instance of IJVMBridgeBase
Top
Properties
 NameDescription
Public propertyBridgeClassName Java class name to be instantiated
(Inherited from JVMBridgeCore)
Public propertyStatic memberBridgeClazz The IJavaType of the implementing class
Public propertyBridgeInstance The IJavaObject instance
(Inherited from JVMBridgeCore)
Public propertyStatic memberDynBridgeClazz The dynamic accessor to BridgeClazz
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
(Overrides JVMBridgeCoreExecuteT(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 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
Public methodIsAssignableFrom(String) Verify if this IJVMBridgeBase is assignable from clazz
Public methodIsAssignableFromT Verify if this IJVMBridgeBase is assignable from T
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 methodStatic memberNew Create a new instance of the TClass
Public methodStatic memberNewAndWrapsDirectTNewClass Wraps a new instance of the TNewClass after execution of New(String, Object)
Public methodStatic memberNewWithSignature Create a new instance of the TClass
Public methodStatic memberNewWithSignatureAndWrapsDirectTNewClass Wraps a new instance of the TNewClass after execution of NewWithSignature(String, String, Object)
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 methodStatic memberSExecute(String, Object) Executes a static method
Public methodStatic memberSExecute(IJavaType, String, Object) Executes a static method
Public methodStatic memberSExecute(Type, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecute(Type, IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn(String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn(IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn(Type, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn(Type, IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTNewClass, TReturn(String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTNewClass, TReturn(IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn, TConverter(Type, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTReturn, TConverter(Type, IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTNewClass, TReturn, TConverter(String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteTNewClass, TReturn, TConverter(IJavaType, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteArrayTArrayType(String, Object) Execute the method and build the result as an array of TArrayType
Public methodStatic memberSExecuteArrayTArrayType(IJavaType, String, Object) Execute the method and build the result as an array of TArrayType
Public methodStatic memberSExecuteWithSignature(String, String, Object) Executes a static method
Public methodStatic memberSExecuteWithSignature(IJavaType, String, String, Object) Executes a static method
Public methodStatic memberSExecuteWithSignature(Type, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignature(Type, IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn(String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn(IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn(Type, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn(Type, IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTNewClass, TReturn(String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTNewClass, TReturn(IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn, TConverter(Type, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTReturn, TConverter(Type, IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTNewClass, TReturn, TConverter(String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureTNewClass, TReturn, TConverter(IJavaType, String, String, Object) Executes a static method which returns a bridged class
Public methodStatic memberSExecuteWithSignatureArrayTArrayType(String, String, Object) Execute the method and build the result as an array of TArrayType
Public methodStatic memberSExecuteWithSignatureArrayTArrayType(IJavaType, String, String, Object) Execute the method and build the result as an array of TArrayType
Public methodStatic memberSGetField(String) Gets the value of a static field identified by fieldName
Public methodStatic memberSGetField(IJavaType, String) Gets the value of a static field on clazz identified by fieldName
Public methodStatic memberSGetFieldTReturn(String) Gets the value of a static field identified by fieldName
Public methodStatic memberSGetFieldTReturn(IJavaType, String) Gets the value of a static field on clazz identified by fieldName
Public methodStatic memberSGetFieldArrayTReturn(String) Gets the value of a static field identified by fieldName
Public methodStatic memberSGetFieldArrayTReturn(IJavaType, String) Gets the value of a static field on clazz identified by fieldName
Public methodStatic memberSSetField(String, Object) Sets the value of a static field identified by fieldName
Public methodStatic memberSSetField(IJavaType, String, Object) Sets the value of a static field on clazz identified by fieldName
Public methodStatic memberSSetFieldTValue(String, TValue) Sets the value of a static field identified by fieldName
Public methodStatic memberSSetFieldTValue(IJavaType, String, TValue) Sets the value of a static field on clazz identified by fieldName
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 MethodCastTObject Casts the input object implemeneting IJVMBridgeBase into TObject
(Defined by JCOBridgeExtensions)
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodInitializeListener Request the initialization of the Listener from the JVM. The listener is a new class which inherits from JVMBridgeListener
(Defined by JCOBridgeExtensions)
Public Extension MethodReleaseListener Release a IJVMBridgeBase from the JVM
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a IJVMBridgeBase input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate propertyIJVMBridgeBaseStaticBridgeClazz The IJavaType of the implementing class
Explicit interface implementationPrivate propertyIJVMBridgeBaseStaticDynBridgeClazz The dynamic accessor to BridgeClazz
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