Click or drag to resize

IJavaType Interface

Generic interface representing a Java type (class or interface) accessible through the JNI bridge. Provides constructor invocation, static method invocation, static field access, and type metadata for the corresponding JVM class.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public interface IJavaType : IDisposable

The IJavaType type exposes the following members.

Properties
 NameDescription
Public propertyIsArray Gets a value indicating whether this IJavaType represents a Java array type.
Public propertyIsPrimitiveConvertible Gets a value indicating whether this IJavaType is primitive-convertible, meaning it maps to a boxed primitive or to String.
Public propertyIsRawPrimitive Gets a value indicating whether this IJavaType represents a raw primitive type, such as bool, byte, int, and so on.
Public propertyJniClassName Gets the class name of this Java type in JNI descriptor notation (e.g. "java/lang/String" for java.lang.String, "[I" for int[]).
Public propertyName Gets the fully qualified name of this Java type as used in .NET (e.g. "java.lang.String").
Public propertySuperClass Gets the IJavaType representing the direct superclass of this type.
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodGetField(String) Reads the value of a static field on the underlying JVM class.
Public methodGetFieldTReturn(String) Reads the value of a static field on the underlying JVM class and casts it to TReturn.
Public methodInvoke(String) Invokes a static method on the underlying JVM class with no arguments.
Public methodInvoke(String, Object) Invokes a static method on the underlying JVM class with 1 argument.
Public methodInvoke(String, Object) Invokes a static method on the underlying JVM class using a variable-length argument list. The bridge resolves the target Java method by matching the runtime types of the supplied arguments.
Public methodInvoke(String, Object, Object) Invokes a static method on the underlying JVM class with 2 arguments.
Public methodInvoke(String, Object, Object, Object) Invokes a static method on the underlying JVM class with 3 arguments.
Public methodInvoke(String, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 4 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 5 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 6 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 7 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 8 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 9 arguments.
Public methodInvoke(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 10 arguments.
Public methodInvokeTReturn(String) Invokes a static method on the underlying JVM class with no arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object) Invokes a static method on the underlying JVM class with 1 argument and casts the result to TReturn.
Public methodInvokeTReturn(String, Object) Invokes a static method on the underlying JVM class using a variable-length argument list and casts the result to TReturn. The bridge resolves the target Java method by matching the runtime types of the supplied arguments.
Public methodInvokeTReturn(String, Object, Object) Invokes a static method on the underlying JVM class with 2 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object) Invokes a static method on the underlying JVM class with 3 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 4 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 5 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 6 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 7 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 8 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 9 arguments and casts the result to TReturn.
Public methodInvokeTReturn(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class with 10 arguments and casts the result to TReturn.
Public methodInvokeWithSignature(String, String) Invokes a static method on the underlying JVM class using an explicit JNI signature and no arguments.
Public methodInvokeWithSignature(String, String, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 1 argument.
Public methodInvokeWithSignature(String, String, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and a variable-length argument list.
Public methodInvokeWithSignature(String, String, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 2 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 3 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 4 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 5 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 6 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 7 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 8 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 9 arguments.
Public methodInvokeWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature and 10 arguments.
Public methodInvokeWithSignatureTReturn(String, String) Invokes a static method on the underlying JVM class using an explicit JNI signature, no arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 1 argument, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, a variable-length argument list, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 2 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 3 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 4 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 5 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 6 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 7 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 8 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 9 arguments, and casts the result to TReturn.
Public methodInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Invokes a static method on the underlying JVM class using an explicit JNI signature, 10 arguments, and casts the result to TReturn.
Public methodNew Instantiates a new JVM object of this IJavaType using the no-argument constructor.
Public methodNew(Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 1 argument.
Public methodNew(Object) Instantiates a new JVM object of this IJavaType using a variable-length argument list. The bridge resolves the target constructor by matching the runtime types of the supplied arguments.
Public methodNew(Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 2 arguments.
Public methodNew(Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 3 arguments.
Public methodNew(Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 4 arguments.
Public methodNew(Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 5 arguments.
Public methodNew(Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 6 arguments.
Public methodNew(Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 7 arguments.
Public methodNew(Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 8 arguments.
Public methodNew(Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 9 arguments.
Public methodNew(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using a constructor that accepts 10 arguments.
Public methodNewWithSignature(String) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and no arguments.
Public methodNewWithSignature(String, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 1 argument.
Public methodNewWithSignature(String, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and a variable-length argument list.
Public methodNewWithSignature(String, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 2 arguments.
Public methodNewWithSignature(String, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 3 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 4 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 5 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 6 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 7 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 8 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 9 arguments.
Public methodNewWithSignature(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of this IJavaType using the constructor identified by an explicit JNI signature and 10 arguments.
Public methodSetField Writes a value to a static field on the underlying JVM class.
Top
Extension Methods
 NameDescription
Public Extension MethodIsPrimitiveConvertible Returns true if the class represents a primitive type
(Defined by JCOBridgeExtensions)
Public Extension MethodIsRawPrimitive Returns true if the class represents a primitive type
(Defined by JCOBridgeExtensions)
Top
See Also