Package net.hydromatic.morel.type
Class Keys.DataTypeKey
java.lang.Object
net.hydromatic.morel.type.Type.Key
net.hydromatic.morel.type.Keys.DataTypeKey
- Enclosing class:
Keys
Key that identifies a
datatype scheme.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringIdeally, a datatype would not have a name, just a list of named type constructors, and the name would be associated later. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe(StringBuilder buf, int left, int right) Writes a description of this key to a string builder.booleaninthashCode()toType(TypeSystem typeSystem) Converts this key to a type, and ensures that it is registered in the type system.Methods inherited from class net.hydromatic.morel.type.Type.Key
copy, substitute, toString
-
Field Details
-
name
Ideally, a datatype would not have a name, just a list of named type constructors, and the name would be associated later. When that happens, we can remove thenamefield from this key. -
arguments
-
typeConstructors
-
-
Constructor Details
-
DataTypeKey
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
describe
Writes a description of this key to a string builder.Prints the name of this datatype along with any type arguments. Examples:
order'a option(int * int) optionbool option option('a,'b) tree
-
toType
Description copied from class:Type.KeyConverts this key to a type, and ensures that it is registered in the type system.
-