 | IJVMWrapperDirectNewWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Method |
Instantiates a new JVM object of className type using the constructor
identified by an explicit JNI signature and 9 arguments.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
SyntaxIJavaObjectBase NewWithSignature(
string className,
string signature,
Object arg0,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5,
Object arg6,
Object arg7,
Object arg8
)
Function NewWithSignature (
className As String,
signature As String,
arg0 As Object,
arg1 As Object,
arg2 As Object,
arg3 As Object,
arg4 As Object,
arg5 As Object,
arg6 As Object,
arg7 As Object,
arg8 As Object
) As IJavaObjectBase
Parameters
- className String
- The class name in the dot or slash form (example are java.lang.Boolean or java/lang/Boolean)
- signature String
- The JNI constructor descriptor string that uniquely identifies the target constructor.
- arg0 Object
- The first argument to pass to the constructor.
- arg1 Object
- The second argument to pass to the constructor.
- arg2 Object
- The third argument to pass to the constructor.
- arg3 Object
- The fourth argument to pass to the constructor.
- arg4 Object
- The fifth argument to pass to the constructor.
- arg5 Object
- The sixth argument to pass to the constructor.
- arg6 Object
- The seventh argument to pass to the constructor.
- arg7 Object
- The eighth argument to pass to the constructor.
- arg8 Object
- The ninth argument to pass to the constructor.
Return Value
IJavaObjectBaseA new
IJavaObjectBase wrapping the newly created JVM instance.
Exceptions| Exception | Condition |
|---|
| MissingMethodException |
Thrown if no constructor matching signature is found on the underlying Java class.
|
See Also