A wrapper for a JNI object that provides access to the object's fields and methods.

Constructors

JavaObject(JniObject object)

Properties

javaClass JavaClass

A JavaClass representing this object's class.

read-only
jniObject JniObject

The raw JniObject wrapped by this object. This can be used to perform low-level JNI operations that aren't exposed by JavaObject, such as access to specific overloaded methods.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

toString() String

Convert this object to a string using the Java object's toString method.