JString class

Inheritance
Available Extensions

Constructors

JString.fromReference(JReference reference)
Construct a new JString with reference as its underlying reference.
JString.fromString(String s)
Construct a JString from the contents of Dart string s.

Properties

$type JObjType<JString>
latefinal
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
length int
The number of Unicode characters in this Java string.
no setter
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
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
toDartString({bool releaseOriginal = false}) String
Returns the contents as a Dart String.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

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