- 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
Return signature
Lookup Kind for a Fantom type
Lookup Kind for a Fantom object
Lookup Kind from its lower case def name
Equality is based signature
Hash is based signature
virtual Bool equals(Obj? that)
Equality is based signature
static Kind? fromDefName(Str name, Bool checked)
Lookup Kind from its lower case def name
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.
static Kind? fromType(Type? type, Bool checked)
Lookup Kind for a Fantom type
static Kind? fromVal(Obj? val, Bool checked)
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