Click or drag to resize

JCOBridgeExtensions Class

General class with helpers for JVM initialization
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeJCOBridgeExtensions

Namespace:  MASES.JCOBridge.C2JBridge
Assembly:  C2JBridge (in C2JBridge.dll) Version: 2.4.14.220818-82c2bf79b6e60a4d98fb4d1695305d68a91adf44
Syntax
public static class JCOBridgeExtensions

The JCOBridgeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCastTObject
Casts the input object implemeneting IJVMBridgeBase into TObject
Public methodStatic memberCheckForPrimitive(Type)
Check if type is one of string, bool, byte, char, double, float, int, long, short or array of previous types
Public methodStatic memberCheckForPrimitiveTType
Check if TType is one of string, bool, byte, char, double, float, int, long, short
Public methodStatic memberConvert(JavaException)
Converts a generic JavaException into a known exception
Public methodStatic memberConvertTException(JavaException)
Converts a generic JavaException into a known exception
Public methodStatic memberConvertTReturn(Object)
Converts a generic object
Public methodStatic memberDynTClass
Returns the dynamic accessor of an instance of TClass
Public methodStatic memberFilterJCOBridgeArgumentsT
Filters arguments related to JCOBridge
Public methodStatic memberGetListener
Returns the IJVMBridgeBase associated to the JVM reference
Public methodStatic memberInitializeListener
Request the initialization of the Listener from the JVM. The listener is a new class which inherits from CLRListener
Public methodStatic memberIsPrimitive
Returns true if the class represents a primitive type
Public methodStatic memberReleaseListener
Release a IJVMBridgeBase from the JVM
Public methodStatic memberToTObject(CLREventData)
Converts data associated to CLREventData into TObject
Public methodStatic memberToTObject(CLREventData, Int32)
Converts extra data associated to CLREventData into TObject
Public methodStatic memberToNative(ICLRListener)
Converts a ICLRListener input to an object manageable from the JVM
Public methodStatic memberToNative(IJVMBridgeBase)
Converts a IJVMBridgeBase input to an object manageable from the JVM
Public methodStatic memberToNative(Object)
Converts a generic input to an object manageable from the JVM
Public methodStatic memberToNative(Object)
Converts a generic input array to an array manageable from the JVM. This extension is usable when there is an input like
params object[] args
with a mixed CLR types.
Top
Remarks
Do not use it directly. Shall be public, but it is used internally from other classes
See Also