type

Scalar

@Js
const class Scalar : Obj

Scalar is used to represent typed scalar values when there is no native Fantom class we can use to track their type.

constructors

make

Construct for spec qname and string value

fields

qname

Scalar type qualified name

val

String value

methods

equals

Equality is base on qname and val

hash

Hash is composed of type and val

toStr

Return string value

Slot Details

equals

virtual override Bool equals(Obj? obj)

Equality is base on qname and val

hash

virtual override Int hash()

Hash is composed of type and val

make

new make(Str qname, Str val)

Construct for spec qname and string value

qname

const Str qname

Scalar type qualified name

toStr

virtual override Str toStr()

Return string value

val

const Str val

String value