Class $jni.JavaObject

Represents a Java instance

Class Summary
Constructor Attributes Constructor Name and Description
 
$jni.JavaObject(className, varargs)
Creates a new instance of a java class.

Method Summary

Class Detail

$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:
{string} className
The name of the class of the object to construct
varargs
Constructor arguments
See:
$jni#.use

Method Detail

  • {object} toJS()
    Returns a JavaScript representation of the object
    Returns:
    {object}