JClass class

A high level wrapper over a JNI class reference.

JClasses are objects of type java.lang.Class.

Inheritance
Available Extensions

Constructors

JClass.forName(String name)
Constructs a JClass associated with the class or interface with the given string name.
JClass.fromReference(JReference reference)
Constructs a JClass with the underlying reference.

Properties

$type JObjType<JObject>
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
isNull bool
no setterinherited
isReleased bool
no setterinherited
jClass JClass
Returns JClass corresponding to concrete class of this object.
no setterinherited
reference JReference
finalinherited
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.
inherited
constructorId(String signature) JConstructorId
instanceFieldId(String name, String signature) JInstanceFieldId
instanceMethodId(String name, String signature) JInstanceMethodId
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases the underlying reference.
inherited
releasedBy(Arena arena) → void
Registers this object to be released at the end of arena's lifetime.
inherited
staticFieldId(String name, String signature) JStaticFieldId
staticMethodId(String name, String signature) JStaticMethodId
toString() String
A string representation of this object.
inherited

Operators

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