$jni. JavaObject#

Represents a Java instance

Constructor#

new $jni.JavaObject(className, varargs)#

Creates a new instance of a java class. This constructor is only needed for creating Java instances of classes that have not been imported with use().

Parameters:
NameTypeDescription
classNamestring

The name of the class of the object to construct

varargs

Constructor arguments

Methods#

toJS() → {object}#

Returns a JavaScript representation of the object

Returns:
Type: 
object