Uses of Interface
net.hydromatic.morel.type.Type
-
Packages that use Type Package Description net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated.net.hydromatic.morel.eval Evaluates expressions.net.hydromatic.morel.foreign Provides access to external data sources.net.hydromatic.morel.type Type system. -
-
Uses of Type in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as Type Modifier and Type Field Description TypeCore.Aggregate. typeTypeCore.Exp. typeTypeCore.Pat. typeMethods in net.hydromatic.morel.ast that return Type Modifier and Type Method Description (package private) static TypeCoreBuilder. fromElementType(TypeSystem typeSystem, List<Core.FromStep> steps)Returns the element type of aCore.Fromwith the given steps.TypeCore.Exp. type()Returns the type.TypeCore.Pat. type()Returns the type.Methods in net.hydromatic.morel.ast with parameters of type Type Modifier and Type Method Description Core.AggregateCoreBuilder. aggregate(Type type, Core.Exp aggregate, @Nullable Core.Exp argument)Core.ApplyCoreBuilder. apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)private Core.ExpCoreBuilder. args(Type paramType, Core.Exp[] args)Core.AsPatCoreBuilder. asPat(Type type, String name, int i, Core.Pat pat)Core.AsPatCoreBuilder. asPat(Type type, String name, NameGenerator nameGenerator, Core.Pat pat)Creates an AsPat with a given name, generating an ordinal to distinguish it from other declarations with the same name elsewhere in the program.private Core.ApplyCoreBuilder. call(TypeSystem typeSystem, BuiltIn builtIn, Type type, Pos pos, Core.Exp... args)Calls a built-in function with one type parameter.Core.CaseCoreBuilder. caseOf(Type type, Core.Exp exp, Iterable<? extends Core.Match> matchList, Pos pos)Core.ConPatCoreBuilder. conPat(Type type, String tyCon, Core.Pat pat)Core.ConPatCoreBuilder. consPat(Type type, String tyCon, Core.Pat pat)Core.AggregateCore.Aggregate. copy(Type type, Core.Exp aggregate, Core.Exp argument)Core.IdPatCoreBuilder. idPat(Type type, String name, int i)Creates an IdPat with a given name and ordinal.Core.IdPatCoreBuilder. idPat(Type type, String name, NameGenerator nameGenerator)Creates an IdPat with a given name, generating an ordinal to distinguish it from other declarations with the same name elsewhere in the program.Core.IdPatCoreBuilder. idPat(Type type, NameGenerator nameGenerator)Creates an IdPat with a system-generated unique name.Core.ExpCoreBuilder. list(TypeSystem typeSystem, Type elementType, List<Core.Exp> args)Creates a list.Core.ListPatCoreBuilder. listPat(Type type, Iterable<? extends Core.Pat> args)Core.ListPatCoreBuilder. listPat(Type type, Core.Pat... args)Core.LiteralPatCoreBuilder. literalPat(Op op, Type type, Comparable value)Core.TuplePatCoreBuilder. tuplePat(Type type, Iterable<? extends Core.Pat> args)Core.TuplePatCoreBuilder. tuplePat(Type type, Core.Pat... args)Core.WildcardPatCoreBuilder. wildcardPat(Type type)Core.AsPatCore.AsPat. withType(Type type)Core.IdPatCore.IdPat. withType(Type type)abstract Core.NamedPatCore.NamedPat. withType(Type type)Constructors in net.hydromatic.morel.ast with parameters of type Type Constructor Description Aggregate(Type type, Core.Exp aggregate, Core.Exp argument)Apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)AsPat(Type type, String name, int i, Core.Pat pat)Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList)ConPat(Op op, Type type, String tyCon, Core.Pat pat)Mostly-private constructor.ConPat(Type type, String tyCon, Core.Pat pat)Exp(Pos pos, Op op, Type type)IdPat(Type type, String name, int i)ListPat(Type type, com.google.common.collect.ImmutableList<Core.Pat> args)Literal(Op op, Type type, Comparable value)Creates a Literal.LiteralPat(Op op, Type type, Comparable value)NamedPat(Op op, Type type, String name, int i)Pat(Op op, Type type)TuplePat(Type type, com.google.common.collect.ImmutableList<Core.Pat> args)WildcardPat(Type type) -
Uses of Type in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Type Modifier and Type Field Description (package private) TypeCalciteCompiler.VarData. type(package private) TypePretty.TypedVal. typeTypeTypeResolver.DatatypeBindWorkspace. typeFields in net.hydromatic.morel.compile with type parameters of type Type Modifier and Type Field Description (package private) SortedMap<String,Type>TypeResolver.DatatypeBindWorkspace. tyConsFunction<TypeSystem,Type>BuiltIn. typeFunctionDerives a type, in a particular type system, for this constant or function.private Map<Pair<Core.NamedPat,Type>,Core.NamedPat>Resolver. variantIdMapContains variable declarations whose type at the point they are used is different (more specific) than in their declaration.Methods in net.hydromatic.morel.compile that return Type Modifier and Type Method Description TypeCompiledStatement. getType()TypeTypeMap. getType(AstNode node)Returns the type of an AST node.TypeTypeMap. getTypeOpt(AstNode node)Returns the type of an AST node, or null if no type is known.private TypeCalciteCompiler. removeTypeVars(Type type)Converts each type variable in a type to a dummy record type,{b: bool}.(package private) TypeTypeMap. termToType(Unifier.Term term)private TypeTypeResolver. toType(Ast.Type type)static TypeTypeResolver. toType(Ast.Type type, TypeSystem typeSystem)Converts a type AST to a type.private static TypePretty. unqualified(Type type)TypeTypeMap.TermToTypeConverter. visit(Unifier.Sequence sequence)TypeTypeMap.TermToTypeConverter. visit(Unifier.Variable variable)Methods in net.hydromatic.morel.compile that return types with arguments of type Type Modifier and Type Method Description private List<Type>TypeResolver. toTypes(List<Ast.Type> typeList)Methods in net.hydromatic.morel.compile with parameters of type Type Modifier and Type Method Description voidTypeResolver.TypeEnvHolder. accept(String name, Type type)private ApplicableCompiler. compileApplicable(Compiler.Context cx, Core.Exp fn, Type argType, Pos pos)Compiles a function value to anApplicable, if possible, or returns null.protected Supplier<Codes.RowSink>Compiler. createRowSinkFactory(Compiler.Context cx0, com.google.common.collect.ImmutableList<Binding> bindings, List<Core.FromStep> steps, Type elementType)Core.ExpMacro. expand(TypeSystem typeSystem, Environment env, Type argType)protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes_, Code resultCode_, Type resultType)protected CodeCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes, Code resultCode, Type resultType)private Ast.ExpTypeResolver. infix(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v, Type type)Registers an infix operator whose type is a given type.private org.apache.calcite.rex.RexNodeCalciteCompiler. morelApply(CalciteCompiler.RelContext cx, Type type, Type argType, org.apache.calcite.rex.RexNode fn, org.apache.calcite.rex.RexNode arg)(package private) StringBuilderPretty. pretty(StringBuilder buf, Type type, Object value)Prints a value to a buffer.private StringBuilderPretty. pretty1(StringBuilder buf, int indent, int[] lineEnd, int depth, Type type, Object value)Prints a value to a buffer.private StringBuilderPretty. pretty2(StringBuilder buf, int indent, int[] lineEnd, int depth, Type type, List<? extends Type> argTypes, Object value)private StringBuilderPretty. printList(StringBuilder buf, int indent, int[] lineEnd, int depth, Type elementType, List<Object> list)private TypeCalciteCompiler. removeTypeVars(Type type)Converts each type variable in a type to a dummy record type,{b: bool}.private ApplicableCompiler. toApplicable(Compiler.Context cx, Object o, Type argType, Pos pos)private Core.PatResolver. toCore(Ast.Pat pat, Type targetType)private Core.PatResolver. toCore(Ast.Pat pat, Type type, Type targetType)Converts a pattern to Core.(package private) CodeCalciteCompiler. toRel4(Environment env, Code code, Type type)private Unifier.TermTypeResolver. toTerm(Type type, TypeResolver.Subst subst)BuiltIn.DataTypeHelperBuiltIn.DataTypeHelper. tyCon(String name, Type type)private static TypePretty. unqualified(Type type)Method parameters in net.hydromatic.morel.compile with type arguments of type Type Modifier and Type Method Description static voidBuiltIn. forEach(TypeSystem typeSystem, BiConsumer<BuiltIn,Type> consumer)Calls a consumer once per value.static voidBuiltIn. forEachStructure(TypeSystem typeSystem, BiConsumer<BuiltIn.Structure,Type> consumer)Calls a consumer once per structure.voidEnvironment. forEachType(BiConsumer<String,Type> consumer)Calls a consumer for each variable and its type.private StringBuilderPretty. pretty2(StringBuilder buf, int indent, int[] lineEnd, int depth, Type type, List<? extends Type> argTypes, Object value)private List<Unifier.Term>TypeResolver. toTerms(Iterable<? extends Type> types, TypeResolver.Subst subst)Constructors in net.hydromatic.morel.compile with parameters of type Type Constructor Description TypedVal(String name, Object o, Type type)VarData(Type type, int offset, org.apache.calcite.rel.type.RelDataType rowType)Constructor parameters in net.hydromatic.morel.compile with type arguments of type Type Constructor Description BuiltIn(@Nullable String structure, String mlName, @Nullable String alias, Function<TypeSystem,Type> typeFunction)BuiltIn(@Nullable String structure, String mlName, @Nullable String alias, Function<TypeSystem,Type> typeFunction, @Nullable PrimitiveType preferredType)BuiltIn(@Nullable String structure, String mlName, Function<TypeSystem,Type> typeFunction)BuiltIn(@Nullable String structure, String mlName, PrimitiveType preferredType, Function<TypeSystem,Type> typeFunction)Resolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat,Type>,Core.NamedPat> variantIdMap, Environment env) -
Uses of Type in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type Type Modifier and Type Method Description private static Core.ExpCodes. sysEnv(TypeSystem typeSystem, Environment env, Type argType)static ApplicableCodes. tyCon(Type dataType, String name)Returns an applicable that constructs an instance of a datatype. -
Uses of Type in net.hydromatic.morel.foreign
Fields in net.hydromatic.morel.foreign declared as Type Modifier and Type Field Description (package private) TypeConverters.FieldConverter. mlType(package private) TypeConverters.C2m. morelTypeMethods in net.hydromatic.morel.foreign that return Type Modifier and Type Method Description static TypeConverters. fieldType(org.apache.calcite.rel.type.RelDataTypeField field)private TypeCalciteForeignValue. toType(org.apache.calcite.schema.SchemaPlus schema, TypeSystem typeSystem)private TypeCalciteForeignValue. toType(org.apache.calcite.schema.Table table, TypeSystem typeSystem)TypeCalciteForeignValue. type(TypeSystem typeSystem)TypeForeignValue. type(TypeSystem typeSystem)Methods in net.hydromatic.morel.foreign with parameters of type Type Modifier and Type Method Description CodeCalcite. code(Environment env, org.apache.calcite.rel.RelNode rel, Type type)Creates aCodethat evaluates a Calcite relational expression, converting it to Morel list typetype.(package private) static Converters.C2mConverters.C2m. forMorel(Type type, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, boolean nullable, boolean recordList)Creates a converter for a given Morel type, in the process deducing the corresponding Calcite type.static <E> Function<E,Object>Converters. forType(org.apache.calcite.rel.type.RelDataType fromType, Type type)static Function<org.apache.calcite.linq4j.Enumerable<Object[]>,List<Object>>Converters. fromEnumerable(org.apache.calcite.rel.RelNode rel, Type type)(package private) static Converter<Object[]>Converters. ofField2(Iterator<org.apache.calcite.rel.type.RelDataTypeField> fields, AtomicInteger ordinal, Type type)(package private) static Converter<Object[]>Converters. ofField3(org.apache.calcite.rel.type.RelDataTypeField field, AtomicInteger ordinal, Type type)static Function<Object,Object>Converters. toCalcite(Type type, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)Returns a function that converts from Morel objects to Calcite objects.static Function<Object,org.apache.calcite.linq4j.Enumerable<Object[]>>Converters. toCalciteEnumerable(Type type, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)Returns a function that converts from Morel objects to an Enumerable over Calcite rows.static org.apache.calcite.rel.type.RelDataTypeConverters. toCalciteType(Type type, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)static Function<Object,Object>Converters. toMorel(Type type, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)Returns a function that converts from Calcite objects to Morel objects.Method parameters in net.hydromatic.morel.foreign with type arguments of type Type Modifier and Type Method Description (package private) static Converter<Object[]>Converters. ofRow3(Iterator<org.apache.calcite.rel.type.RelDataTypeField> fields, AtomicInteger ordinal, org.apache.calcite.linq4j.Enumerator<Type> types)Constructors in net.hydromatic.morel.foreign with parameters of type Type Constructor Description C2m(org.apache.calcite.rel.type.RelDataType calciteType, Type morelType)FieldConverter(Type mlType) -
Uses of Type in net.hydromatic.morel.type
Subinterfaces of Type in net.hydromatic.morel.type Modifier and Type Interface Description interfaceNamedTypeType that has a name.interfaceRecordLikeTypeA type that has named fields, as a record type does.Classes in net.hydromatic.morel.type that implement Type Modifier and Type Class Description classApplyTypeType that is a polymorphic type applied to a set of types.(package private) classBaseTypeAbstract implementation of Type.classDataTypeAlgebraic type.classDummyTypeType that is a place-holder for a type constructor that has no arguments; for example, "NONE" in "datatype 'a option = NONE | SOME of 'a" would have dummy type.classFnTypeThe type of a function value.classForallTypeUniversally quantified type.classListTypeThe type of a list value.classParameterizedTypeBase class for types that accept type parameters.classPrimitiveTypePrimitive type.classRecordTypeThe type of a record value.classTemporaryTypePlaceholder for a type that is being recursively defined.classTupleTypeThe type of a tuple value.classTypeVarType variable (e.g.Fields in net.hydromatic.morel.type declared as Type Modifier and Type Field Description TypeListType. elementTypeTypeFnType. paramTypeTypeFnType. resultTypeTypeForallType. type(package private) TypeKeys.ForallKey. typeFields in net.hydromatic.morel.type with type parameters of type Type Modifier and Type Field Description (package private) com.google.common.collect.ImmutableSortedMap<String,Type>Keys.RecordKey. argNameTypesSortedMap<String,Type>RecordType. argNameTypes(package private) com.google.common.collect.ImmutableList<Type>Keys.ApplyKey. argTypes(package private) com.google.common.collect.ImmutableList<Type>Keys.ForallTypeApplyKey. argTypes(package private) com.google.common.collect.ImmutableList<Type>Keys.OpKey. argTypesList<Type>TupleType. argTypes(package private) Map<String,Type>TypeSystem. internalTypeByNameList<Type>ParameterizedType. parameterTypes(package private) SortedMap<String,Type>Keys.DataTypeDef. tyCons(package private) Map<Type.Key,Type>TypeSystem. typeByKey(package private) Map<String,Type>TypeSystem. typeByNameprivate Map<String,Pair<DataType,Type>>TypeSystem. typeConstructorByNameSortedMap<String,Type>DataType. typeConstructorscom.google.common.collect.ImmutableList<Type>ApplyType. types(package private) List<Type>Keys.DataTypeDef. typesMethods in net.hydromatic.morel.type that return Type Modifier and Type Method Description TypeTypeSystem. apply(Type type, List<Type> types)TypeTypeSystem. apply(Type type, Type... types)TypePrimitiveType. argType(int i)TypeRecordLikeType. argType(int i)Returns the type of theith field, or throws.TypeRecordType. argType(int i)TypeTupleType. argType(int i)TypeApplyType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)TypeType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.TypeTypeVar. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)TypeTypeSystem. dataTypeScheme(String name, List<TypeVar> typeParameters, SortedMap<String,Type> tyCons)Creates a data type scheme: a datatype if there are no type arguments (e.g.TypeTypeSystem. ensureClosed(Type type)Converts a type into aForallTypeif it has free type variables.TypeTypeSystem. fnType(Type paramType, Type type1, Type type2, Type... moreTypes)Creates a multi-step function type.TypeTypeSystem. forallType(int typeCount, Function<TypeSystem.ForallHelper,Type> builder)Creates a "forall" type.private TypeTypeSystem. keyToType(Type.Key key)Creates a type from a key.TypeTypeSystem. lookup(String name)Looks up a type by name.TypeTypeSystem. lookupInternal(String name)Looks up an internal type by name.TypeTypeSystem. lookupOpt(String name)Looks up a type by name, returning null if not found.TypeTypeSystem.ForallHelper. option(int i)Creates type`i option.TypeTypeSystem. option(Type type)Creates an "option" type.TypeTypeSystem. recordOrScalarType(SortedMap<String,? extends Type> argNameTypes)Creates a record type, or returns a scalar type ifargNameTypeshas one entry.TypeDataType. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)default TypeType. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)Returns a copy of this type, specialized by substituting type parameters.TypeTypeVar. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)protected TypeDataType. substitute2(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)Second part of the implementation ofDataType.substitute(TypeSystem, List, TypeSystem.Transaction), called if there is not already a type of the given description.protected TypeTemporaryType. substitute2(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)TypeKeys.ApplyKey. toType(TypeSystem typeSystem)TypeKeys.DataTypeKey. toType(TypeSystem typeSystem)TypeKeys.ForallKey. toType(TypeSystem typeSystem)TypeKeys.ForallTypeApplyKey. toType(TypeSystem typeSystem)TypeKeys.NameKey. toType(TypeSystem typeSystem)TypeKeys.OpKey. toType(TypeSystem typeSystem)TypeKeys.OrdinalKey. toType(TypeSystem typeSystem)TypeKeys.RecordKey. toType(TypeSystem typeSystem)TypeType.Key. toType(TypeSystem typeSystem)TypeTypeSystem. typeFor(Type.Key key)Gets a type that matches a key, creating if necessary.TypeTypeSystem.ForallHelper. vector(int i)Creates type`i vector.TypeTypeSystem. vector(Type type)Creates a "vector" type.TypeTypeShuttle. visit(ApplyType applyType)TypeTypeShuttle. visit(DataType dataType)TypeTypeShuttle. visit(TypeVar typeVar)private TypeTypeSystem. wrap(DataType dataType, Type type)Methods in net.hydromatic.morel.type that return types with arguments of type Type Modifier and Type Method Description SortedMap<String,Type>PrimitiveType. argNameTypes()SortedMap<String,Type>RecordLikeType. argNameTypes()SortedMap<String,Type>RecordType. argNameTypes()SortedMap<String,Type>TupleType. argNameTypes()(package private) com.google.common.collect.ImmutableSortedMap<String,Type>TypeSystem. copyTypeConstructors(SortedMap<String,Type> typeConstructors, UnaryOperator<Type> transform)List<Type>TypeSystem. dataTypes(List<Keys.DataTypeDef> defs)Creates several data types simultaneously.private List<Type>TypeSystem. dataTypes(List<Keys.DataTypeDef> defs, TypeSystem.DataTypeFixer fixer)Ord<Type>RecordType. lookupField(String fieldName)Returns the index of a given field, or -1.Pair<DataType,Type>TypeSystem. lookupTyCon(String tyConName)(package private) static com.google.common.collect.ImmutableSortedMap<String,Type>TupleType. toArgNameTypes(List<? extends Type> argTypes)Given a list of types [t1, t2, ..., tn] returns a sorted map ["1" : t1, "2" : t2, ...Methods in net.hydromatic.morel.type with parameters of type Type Modifier and Type Method Description static Type.KeyKeys. apply(ParameterizedType type, Type... argTypes)Returns a key that identifies anApplyType, with an array of types.TypeTypeSystem. apply(Type type, List<Type> types)TypeTypeSystem. apply(Type type, Type... types)voidTypeSystem.DataTypeFixer. apply(Type type, Map<Type.Key,Type> typeMap)TypeTypeSystem. ensureClosed(Type type)Converts a type into aForallTypeif it has free type variables.static Type.KeyKeys. fn(Type paramType, Type resultType)Returns a key that identifies aFnType.FnTypeTypeSystem. fnType(Type paramType, Type resultType)Creates a function type.TypeTypeSystem. fnType(Type paramType, Type type1, Type type2, Type... moreTypes)Creates a multi-step function type.static Type.KeyKeys. forall(Type type, List<TypeVar> parameterTypes)Returns a key that identifies aForallType.ForallTypeTypeSystem. forallType(List<TypeVar> typeVars, Type type)Creates a "for all" type.static Type.KeyKeys. list(Type elementType)Returns a key that identifies aListType.ListTypeTypeSystem. listType(Type elementType)Creates a list type.TypeTypeSystem. option(Type type)Creates an "option" type.(package private) voidTypeSystem.TransactionImpl. put(String moniker, Type type)TupleTypeTypeSystem. tupleType(Type argType0, Type... argTypes)Creates a tuple type from an array of types.(package private) static StringBuilderTypeSystem. unparse(StringBuilder builder, Type type, int left, int right)TypeTypeSystem. vector(Type type)Creates a "vector" type.private TypeTypeSystem. wrap(DataType dataType, Type type)Method parameters in net.hydromatic.morel.type with type arguments of type Type Modifier and Type Method Description static Type.KeyKeys. apply(ParameterizedType type, Iterable<? extends Type> argTypes)Returns a key that identifies anApplyType.TypeTypeSystem. apply(Type type, List<Type> types)voidTypeSystem.DataTypeFixer. apply(Type type, Map<Type.Key,Type> typeMap)(package private) static StringParameterizedType. computeMoniker(String name, List<? extends Type> typeVars)TypeApplyType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)DataTypeDataType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)DummyTypeDummyType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)FnTypeFnType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)ForallTypeForallType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)ListTypeListType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)PrimitiveTypePrimitiveType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)RecordTypeRecordType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)TemporaryTypeTemporaryType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)TupleTypeTupleType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)TypeType. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.TypeTypeVar. copy(TypeSystem typeSystem, UnaryOperator<Type> transform)(package private) com.google.common.collect.ImmutableSortedMap<String,Type>TypeSystem. copyTypeConstructors(SortedMap<String,Type> typeConstructors, UnaryOperator<Type> transform)(package private) com.google.common.collect.ImmutableSortedMap<String,Type>TypeSystem. copyTypeConstructors(SortedMap<String,Type> typeConstructors, UnaryOperator<Type> transform)(package private) DataTypeTypeSystem. dataType(String name, Type.Key key, List<? extends Type> types, SortedMap<String,Type> tyCons)(package private) DataTypeTypeSystem. dataType(String name, Type.Key key, List<? extends Type> types, SortedMap<String,Type> tyCons)static Keys.DataTypeDefKeys. dataTypeDef(String name, List<? extends Type> parameterTypes, SortedMap<String,Type> tyCons, boolean scheme)Returns a definition of aDataType.static Keys.DataTypeDefKeys. dataTypeDef(String name, List<? extends Type> parameterTypes, SortedMap<String,Type> tyCons, boolean scheme)Returns a definition of aDataType.TypeTypeSystem. dataTypeScheme(String name, List<TypeVar> typeParameters, SortedMap<String,Type> tyCons)Creates a data type scheme: a datatype if there are no type arguments (e.g.TypeTypeSystem. forallType(int typeCount, Function<TypeSystem.ForallHelper,Type> builder)Creates a "forall" type.static Type.KeyKeys. forallTypeApply(ForallType forallType, List<? extends Type> argTypes)Returns a key that identifies aForallTypewith monomorphic types substituted for its type parameters.static Type.KeyKeys. record(SortedMap<String,Type> argNameTypes)Returns a key that identifies aRecordType(or aTupleTypeif the field names are ascending integers, orunitif the fields are empty).TypeTypeSystem. recordOrScalarType(SortedMap<String,? extends Type> argNameTypes)Creates a record type, or returns a scalar type ifargNameTypeshas one entry.RecordLikeTypeTypeSystem. recordType(SortedMap<String,? extends Type> argNameTypes)Creates a record type.private static voidTypeSystem. setTypeConstructors(DataType dataType, com.google.common.collect.ImmutableSortedMap<String,Type> typeConstructors)Sets theDataType.typeConstructorsfield of a newly constructedDataType.TypeDataType. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)default TypeType. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)Returns a copy of this type, specialized by substituting type parameters.TypeTypeVar. substitute(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)protected TypeDataType. substitute2(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)Second part of the implementation ofDataType.substitute(TypeSystem, List, TypeSystem.Transaction), called if there is not already a type of the given description.protected TypeTemporaryType. substitute2(TypeSystem typeSystem, List<? extends Type> types, TypeSystem.Transaction transaction)TemporaryTypeTypeSystem. temporaryType(String name, List<? extends Type> parameterTypes, TypeSystem.Transaction transaction_, boolean withScheme)Creates a temporary type.(package private) static com.google.common.collect.ImmutableSortedMap<String,Type>TupleType. toArgNameTypes(List<? extends Type> argTypes)Given a list of types [t1, t2, ..., tn] returns a sorted map ["1" : t1, "2" : t2, ...static Type.KeyKeys. tuple(List<? extends Type> argTypes)Returns a key that identifies aTupleType.RecordLikeTypeTypeSystem. tupleType(List<? extends Type> argTypes)Creates a tuple type.(package private) static StringBuilderTypeSystem. unparseList(StringBuilder builder, Op op, int left, int right, Collection<? extends Type> argTypes)Constructors in net.hydromatic.morel.type with parameters of type Type Constructor Description FnType(Type paramType, Type resultType)ForallKey(Type type, com.google.common.collect.ImmutableList<TypeVar> parameterTypes)ForallType(com.google.common.collect.ImmutableList<TypeVar> typeVars, Type type)ListType(Type elementType)Constructor parameters in net.hydromatic.morel.type with type arguments of type Type Constructor Description ApplyKey(ParameterizedType type, com.google.common.collect.ImmutableList<Type> argTypes)ApplyType(ParameterizedType type, com.google.common.collect.ImmutableList<Type> types)DataType(String name, Type.Key key, List<? extends Type> parameterTypes, SortedMap<String,Type> typeConstructors)Creates a DataType.DataType(String name, Type.Key key, List<? extends Type> parameterTypes, SortedMap<String,Type> typeConstructors)Creates a DataType.DataType(Op op, String name, Type.Key key, List<? extends Type> parameterTypes, SortedMap<String,Type> typeConstructors)Called only from DataType and TemporaryType constructor.DataType(Op op, String name, Type.Key key, List<? extends Type> parameterTypes, SortedMap<String,Type> typeConstructors)Called only from DataType and TemporaryType constructor.DataTypeDef(String name, com.google.common.collect.ImmutableList<Type> types, com.google.common.collect.ImmutableSortedMap<String,Type> tyCons, boolean scheme)DataTypeDef(String name, com.google.common.collect.ImmutableList<Type> types, com.google.common.collect.ImmutableSortedMap<String,Type> tyCons, boolean scheme)ForallTypeApplyKey(ForallType forallType, com.google.common.collect.ImmutableList<Type> argTypes)OpKey(Op op, com.google.common.collect.ImmutableList<Type> argTypes)ParameterizedType(Op op, String name, String moniker, List<? extends Type> parameterTypes)Creates a ParameterizedType.RecordKey(com.google.common.collect.ImmutableSortedMap<String,Type> argNameTypes)RecordType(com.google.common.collect.ImmutableSortedMap<String,Type> argNameTypes)TemporaryType(String name, List<? extends Type> parameterTypes)TupleType(com.google.common.collect.ImmutableList<Type> argTypes)
-