$jni

Provides Java native interface in Javascript

Classes

char
JavaClass
JavaObject
JavaPrimitiveArray

Methods

(static) getClass(className) → {$jni.JavaClass}

Returns a class

Parameters:
NameTypeDescription
classNamestring
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:
NameTypeAttributesDescription
className

String or array of strings

useNamespaceboolean<optional>

True (default) if the classes should be put in a namespace

Returns:
Type: 
$jni.JavaClass