JObject class

A high-level wrapper for JNI global object reference.

This is the base class for classes generated by jnigen.

Implementers
Available Extensions

Constructors

JObject.fromReference(JReference reference)
Constructs a JObject with the underlying reference.

Properties

$type JObjType<JObject>
latefinal
hashCode int
The hash code for this object.
no setteroverride
isNull bool
no setter
isReleased bool
no setter
jClass JClass
Returns JClass corresponding to concrete class of this object.
no setter
reference JReference
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

castTo<T extends JObject>(JObjType<T> type, {bool releaseOriginal = false}) → T
Casts this object to another type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases the underlying reference.
releasedBy(Arena arena) → void
Registers this object to be released at the end of arena's lifetime.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

type → const JObjType<JObject>
The type which includes information such as the signature of this class.