Uses of Class
net.hydromatic.morel.type.Type.Key
Packages that use Type.Key
Package
Description
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.Evaluates expressions.
Type system.
-
Uses of Type.Key in net.hydromatic.morel.compile
Methods in net.hydromatic.morel.compile that return Type.KeyModifier and TypeMethodDescriptionBuiltIn.DataTypeHelper.get(int i) (package private) Type.KeyConverts an AST type into a type key.static Type.KeyConverts a type AST to a type key.Methods in net.hydromatic.morel.compile that return types with arguments of type Type.KeyModifier and TypeMethodDescriptionTypeResolver.Foo.toTypeKeys(Iterable<? extends Ast.Type> types) Methods in net.hydromatic.morel.compile with parameters of type Type.KeyModifier and TypeMethodDescriptionMethod parameters in net.hydromatic.morel.compile with type arguments of type Type.KeyModifier and TypeMethodDescriptionprivate voidTypeResolver.deduceDatatypeBindType(Ast.DatatypeBind datatypeBind, SortedMap<String, Type.Key> tyCons) -
Uses of Type.Key in net.hydromatic.morel.eval
Fields in net.hydromatic.morel.eval declared as Type.KeyModifier and TypeFieldDescription(package private) static final Type.KeyFiles.UnknownFile.PROGRESSIVE_UNITKey for the type "{...}", the progressive record with no (as yet known) fields.(package private) static final Type.KeyFiles.UnknownFile.PROGRESSIVE_UNIT_LISTKey for the type "{...} list", the list of progressive records with no (as yet known) fields.(package private) final Type.KeyFiles.DataFile.typeKeyMethods in net.hydromatic.morel.eval that return Type.KeyModifier and TypeMethodDescriptionFiles.DataFile.typeKey()Files.Directory.typeKey()Files.UnknownFile.typeKey()Methods in net.hydromatic.morel.eval that return types with arguments of type Type.KeyModifier and TypeMethodDescriptionFiles.FileType.deduceFields(BufferedReader r) Files.deduceFieldsCsv(BufferedReader r) Methods in net.hydromatic.morel.eval with parameters of type Type.KeyModifier and TypeMethodDescriptionCreates a function that converts a string field value to the desired type.Constructors in net.hydromatic.morel.eval with parameters of type Type.Key -
Uses of Type.Key in net.hydromatic.morel.type
Subclasses of Type.Key in net.hydromatic.morel.typeModifier and TypeClassDescriptionprivate static classKey of a type that applies a parameterized type to specific type arguments.static classKey that identifies adatatypescheme.private static classKey of a forall type.private static classKey that identifies a type by name.private static classKey of a type that applies a built-in type constructor to specific type arguments.private static classKey that identifies a type by ordinal.private static classprivate static classKey of a record type.Fields in net.hydromatic.morel.type declared as Type.KeyFields in net.hydromatic.morel.type with type parameters of type Type.KeyModifier and TypeFieldDescriptionKeys.ProgressiveRecordKey.argNameTypesKeys.RecordKey.argNameTypes(package private) final com.google.common.collect.ImmutableList<Type.Key> Keys.ApplyKey.args(package private) final com.google.common.collect.ImmutableList<Type.Key> Keys.OpKey.argsKeys.DataTypeKey.argumentsTypeSystem.typeByKeyTypeSystem.typeConstructorByNameDataType.typeConstructorsKeys.DataTypeKey.typeConstructorsMethods in net.hydromatic.morel.type that return Type.KeyModifier and TypeMethodDescriptionstatic Type.KeyReturns a key that applies a polymorphic type to arguments.Keys.ApplyKey.copy(UnaryOperator<Type.Key> transform) Keys.OpKey.copy(UnaryOperator<Type.Key> transform) Keys.ProgressiveRecordKey.copy(UnaryOperator<Type.Key> transform) Keys.RecordKey.copy(UnaryOperator<Type.Key> transform) (package private) Type.KeyType.Key.copy(UnaryOperator<Type.Key> transform) Copies this key, applying a transform to constituent keys.static Type.KeyKeys.dummy()Returns a key to the dummy type.static Type.KeyReturns a key that identifies aFnType.static Type.KeyReturns a key that identifies aForallType.DataType.key()DummyType.key()FnType.key()ForallType.key()ListType.key()PrimitiveType.key()ProgressiveRecordType.key()RecordType.key()TupleType.key()Type.key()Description of the type, e.gTypeVar.key()static Type.KeyReturns a key that identifies aListType.static Type.KeyReturns a key that identifies types by name.static Type.KeyKeys.ordinal(int ordinal) Returns a key that identifies types (especiallytype variables) by ordinal.static Type.KeyKeys.progressiveRecord(SortedMap<String, ? extends Type.Key> argNameTypes) Returns a key that identifies aProgressiveRecordType.static Type.KeyAsKeys.record(SortedMap)but anIterableargument.static Type.KeyReturns a key that identifies aRecordType(or aTupleTypeif the field names are ascending integers, orunitif the fields are empty).Keys.OrdinalKey.substitute(List<? extends Type> types) (package private) Type.KeyType.Key.substitute(List<? extends Type> types) If this is a type variableordinal, returns theordinalth type in the list, otherwise this.static Type.KeyKeys.toProgressive(Type.Key key) Converts a record key to a progressive record key, leaves other keys unchanged.static Type.KeyReturns a key that identifies aTupleType.TypedValue.typeKey()Key from which the type of this value can be constructed.Methods in net.hydromatic.morel.type that return types with arguments of type Type.KeyModifier and TypeMethodDescriptionTypeSystem.lookupTyCon(String tyConName) Keys.ordinals(int size) Returns a list of keys for type variables 0 through size - 1.TupleType.toArgNameTypeKeys(List<? extends Type> argTypes) Given a list of types [t1, t2, ..., tn] returns a sorted map ["1" : t1.key, "2" : t2.key, ...Converts a list of types to a list of keys.Converts a map of types to a map of keys.Methods in net.hydromatic.morel.type with parameters of type Type.KeyModifier and TypeMethodDescriptionstatic Type.KeyReturns a key that applies a polymorphic type to arguments.static Type.KeyReturns a key that identifies aFnType.static Type.KeyReturns a key that identifies aListType.static Type.KeyKeys.toProgressive(Type.Key key) Converts a record key to a progressive record key, leaves other keys unchanged.Gets a type that matches a key, creating if necessary.(package private) static StringBuilderTypeSystem.unparse(StringBuilder builder, Type.Key type, int left, int right) Method parameters in net.hydromatic.morel.type with type arguments of type Type.KeyModifier and TypeMethodDescriptionstatic Type.KeyReturns a key that applies a polymorphic type to arguments.Keys.ApplyKey.copy(UnaryOperator<Type.Key> transform) Keys.OpKey.copy(UnaryOperator<Type.Key> transform) Keys.ProgressiveRecordKey.copy(UnaryOperator<Type.Key> transform) Keys.RecordKey.copy(UnaryOperator<Type.Key> transform) (package private) Type.KeyType.Key.copy(UnaryOperator<Type.Key> transform) Copies this key, applying a transform to constituent keys.static Keys.DataTypeKeyKeys.datatype(String name, List<? extends Type.Key> arguments, SortedMap<String, Type.Key> typeConstructors) Returns a key that identifies aDataType.static Keys.DataTypeKeyKeys.datatype(String name, List<? extends Type.Key> arguments, SortedMap<String, Type.Key> typeConstructors) Returns a key that identifies aDataType.(package private) DataTypeTypeSystem.dataType(String name, List<? extends Type> argumentTypes, SortedMap<String, Type.Key> tyCons) Creates an algebraic type.Creates a data type scheme: a datatype if there are no type arguments (e.g(package private) static StringBuilderKeys.describeRecordType(StringBuilder buf, int left, int right, SortedMap<String, Type.Key> argNameTypes, Op op) Describes a record, progressive record, or tuple type.static Type.KeyKeys.progressiveRecord(SortedMap<String, ? extends Type.Key> argNameTypes) Returns a key that identifies aProgressiveRecordType.static Type.KeyAsKeys.record(SortedMap)but anIterableargument.static Type.KeyReturns a key that identifies aRecordType(or aTupleTypeif the field names are ascending integers, orunitif the fields are empty).static Type.KeyReturns a key that identifies aTupleType.Converts a list of keys to a list of types.Converts a map of keys to a map of types.(package private) static StringBuilderTypeSystem.unparseList(StringBuilder builder, Op op, int left, int right, Collection<? extends Type.Key> argTypes) Constructors in net.hydromatic.morel.type with parameters of type Type.KeyConstructor parameters in net.hydromatic.morel.type with type arguments of type Type.KeyModifierConstructorDescription(package private)(package private)DataType(String name, String moniker, List<? extends Type> arguments, SortedMap<String, Type.Key> typeConstructors) Creates a DataType.protectedDataType(Op op, String name, String moniker, List<? extends Type> arguments, SortedMap<String, Type.Key> typeConstructors) Called only from DataType constructor.(package private)DataTypeKey(String name, List<? extends Type.Key> arguments, SortedMap<String, Type.Key> typeConstructors) (package private)DataTypeKey(String name, List<? extends Type.Key> arguments, SortedMap<String, Type.Key> typeConstructors) (package private)(package private)ProgressiveRecordKey(com.google.common.collect.ImmutableSortedMap<String, Type.Key> argNameTypes) (package private)