class

XStr

@Js
const class XStr : Obj

XStr is an extended string which is a type name and value encoded as a string. It is used as a generic value when an XStr is decoded without any predefind Fantom type.

constructors make

Construct for type name and string value

fields val

String value

type

Type name

methods toStr

equals

Equality is base on type and val

decode

Decode into its appropiate Fantom type or fallback to generic XStr

hash

Hash is composed of type and val

decode static Obj decode(Str type, Str val)

Decode into its appropiate Fantom type or fallback to generic XStr

equals virtual Bool equals(Obj? obj)

Equality is base on type and val

hash virtual Int hash()

Hash is composed of type and val

make new make(Str type, Str val)

Construct for type name and string value

toStr virtual Str toStr()

type const Str : type

Type name

val const Str : val

String value

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST