Provides Java native interface in Javascript
Classes
Methods
(static) getClass(className) → {$jni.JavaClass}
Returns a class
Parameters:
Name | Type | Description |
---|---|---|
className | string |
Returns:
- Type:
- $jni.JavaClass
(static) toJava() → {$jni.JavaObject}
Returns a Java represantation of the object
Returns:
- Type:
- $jni.JavaObject
(static) use(className, useNamespaceopt) → {$jni.JavaClass}
Imports the class(es) as a constructor of the same name
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
className | String or array of strings | ||
useNamespace | boolean | <optional> | True (default) if the classes should be put in a namespace |
Returns:
- Type:
- $jni.JavaClass