- Index
- »
- fan.haystack
- »
- Kind
Kind
@Js
const abstract class Kind : Obj
Kind provides a type signature for a Haystack data value
Parse a signature to its Kind representation
Name of kind
Fantom type for the kind
Equality is based signature
Lookup Kind from its lower case def name
Lookup Kind for a Fantom type
Lookup Kind for a Fantom object
Hash is based signature
Return signature
virtual Bool equals(Obj? that)
Equality is based signature
static Kind? fromDefName(Str name, Bool checked := true)
Lookup Kind from its lower case def name
static new fromStr(Str signature, Bool checked := true)
Parse a signature to its Kind representation. If it cannot be parsed to a known kind, then return null or raise an exception.
static Kind? fromType(Type? type, Bool checked := true)
Lookup Kind for a Fantom type
static Kind? fromVal(Obj? val, Bool checked := true)
Lookup Kind for a Fantom object
virtual Int hash()
Hash is based signature
const Str : name
Name of kind: Bool, Number, List, etc
virtual Str toStr()
Return signature
const Type : type
Fantom type for the kind