class

Kind

@Js
const abstract class Kind : Obj

Kind provides a type signature for a Haystack data value

constructors fromStr

Parse a signature to its Kind representation

fields name

Name of kind

type

Fantom type for the kind

methods toStr

Return signature

fromType

Lookup Kind for a Fantom type

fromVal

Lookup Kind for a Fantom object

fromDefName

Lookup Kind from its lower case def name

equals

Equality is based signature

hash

Hash is based signature

equals virtual Bool equals(Obj? that)

Equality is based signature

fromDefName static Kind? fromDefName(Str name, Bool checked)

Lookup Kind from its lower case def name

fromStr static new fromStr(Str signature, Bool checked)

Parse a signature to its Kind representation. If it cannot be parsed to a known kind, then return null or raise an exception.

fromType static Kind? fromType(Type? type, Bool checked)

Lookup Kind for a Fantom type

fromVal static Kind? fromVal(Obj? val, Bool checked)

Lookup Kind for a Fantom object

hash virtual Int hash()

Hash is based signature

name const Str : name

Name of kind: Bool, Number, List, etc

toStr virtual Str toStr()

Return signature

type const Type : type

Fantom type for the kind

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