Uses of Interface
net.hydromatic.morel.type.Type
-
Packages that use Type Package Description 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.compile
Fields in net.hydromatic.morel.compile declared as Type Modifier and Type Field Description (package private) TypePretty.TypedVal. typeFields in net.hydromatic.morel.compile with type parameters of type Type Modifier and Type Field Description java.util.function.Function<TypeSystem,Type>BuiltIn. typeFunctionDerives a type, in a particular type system, for this constant or function.Methods in net.hydromatic.morel.compile that return Type Modifier and Type Method Description TypeCompiledStatement. getType()TypeTypeResolver.TypeMap. getType(AstNode node)Returns a type of an AST node.private TypeTypeResolver.TypeMap. termToType(Unifier.Term term)private TypeTypeResolver. toType(Ast.Type type)TypeTypeResolver.TermToTypeConverter. visit(Unifier.Sequence sequence)TypeTypeResolver.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 java.util.List<Type>TypeResolver. toTypes(java.util.List<Ast.Type> typeList)Methods in net.hydromatic.morel.compile with parameters of type Type Modifier and Type Method Description voidTypeResolver.TypeEnvHolder. accept(java.lang.String name, Type type)EnvironmentEnvironment. bind(java.lang.String name, Type type, java.lang.Object value)Creates an environment that is the same as a given environment, plus one more variable.private voidCompiler. compileTyCon(Environment env, Type dataType, Ast.TyCon tyCon, java.util.List<Binding> bindings)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 Ast.ExpTypeResolver. infixOverloaded(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.private Ast.ExpTypeResolver. opOverloaded(TypeResolver.TypeEnv env, Ast.Exp call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.private Ast.ExpTypeResolver. prefixOverloaded(TypeResolver.TypeEnv env, Ast.PrefixCall call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.(package private) static java.lang.StringBuilderPretty. pretty(java.lang.StringBuilder buf, Type type, java.lang.Object value)Prints a value to a buffer.private static java.lang.StringBuilderPretty. pretty1(java.lang.StringBuilder buf, int indent, int[] lineEnd, int depth, Type type, java.lang.Object value)Prints a value to a buffer.private static java.lang.StringBuilderPretty. pretty2(java.lang.StringBuilder buf, int indent, int[] lineEnd, int depth, Type type, java.lang.Object value)private Unifier.TermTypeResolver. toTerm(Type type, TypeResolver.Subst subst)Method parameters in net.hydromatic.morel.compile with type arguments of type Type Modifier and Type Method Description static voidBuiltIn. forEachType(TypeSystem typeSystem, java.util.function.BiConsumer<java.lang.String,Type> consumer)Calls a consumer once per value.voidEnvironment. forEachType(java.util.function.BiConsumer<java.lang.String,Type> consumer)Calls a consumer for each variable and its type.private java.util.List<Unifier.Term>TypeResolver. toTerms(java.lang.Iterable<? extends Type> types, TypeResolver.Subst subst)Constructors in net.hydromatic.morel.compile with parameters of type Type Constructor Description TypedVal(java.lang.String name, java.lang.Object o, Type type)Constructor parameters in net.hydromatic.morel.compile with type arguments of type Type Constructor Description BuiltIn(java.lang.String mlName, java.lang.String alias, java.util.function.Function<TypeSystem,Type> typeFunction)BuiltIn(java.lang.String mlName, java.util.function.Function<TypeSystem,Type> typeFunction) -
Uses of Type in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type Type Modifier and Type Method Description static ApplicableCodes. tyCon(Type dataType, java.lang.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) TypeCalciteForeignValue.FieldConverter. mlTypeMethods in net.hydromatic.morel.foreign that return Type Modifier and Type Method Description private TypeCalciteForeignValue. toType(org.apache.calcite.schema.Table table, TypeSystem typeSystem)TypeCalciteForeignValue. type(TypeSystem typeSystem)TypeForeignValue. type(TypeSystem typeSystem)Constructors in net.hydromatic.morel.foreign with parameters of type Type Constructor Description FieldConverter(Type mlType, int ordinal) -
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.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.classPrimitiveTypePrimitive type.classRecordTypeThe type of a record value.classTupleTypeThe type of a tuple value.static classTypeSystem.TemporaryTypePlaceholder for a type that is being recursively defined.classTypeVarType variable (e.g.Fields in net.hydromatic.morel.type declared as Type Modifier and Type Field Description TypeListType. elementTypeTypeFnType. paramTypeTypeFnType. resultTypeTypeApplyType. typeTypeBinding. typeTypeForallType. typeFields in net.hydromatic.morel.type with type parameters of type Type Modifier and Type Field Description java.util.SortedMap<java.lang.String,Type>RecordType. argNameTypesjava.util.List<Type>TupleType. argTypesprivate java.util.Map<java.lang.String,Type>TypeSystem. typeByNameprivate java.util.Map<java.lang.String,Pair<DataType,Type>>TypeSystem. typeConstructorByNamejava.util.SortedMap<java.lang.String,Type>DataType. typeConstructorscom.google.common.collect.ImmutableList<Type>ApplyType. typesMethods in net.hydromatic.morel.type that return Type Modifier and Type Method Description TypeTypeSystem. apply(Type type, java.util.List<Type> types)TypeApplyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDataType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDummyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeFnType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeForallType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeListType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypePrimitiveType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeRecordType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTupleType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.TypeTypeSystem.TemporaryType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTypeVar. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)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, java.util.function.Function<TypeSystem.ForallHelper,Type> builder)Creates a "forall" type.TypeTypeSystem. forallType(java.lang.Iterable<TypeVar> typeVars, Type type)Creates a "forall" type.TypeTypeSystem. lookup(java.lang.String name)Looks up a type by name.TypeTypeSystem. lookupOpt(java.lang.String name)Looks up a type by name, returning null if not found.TypeTypeSystem. recordType(java.util.SortedMap<java.lang.String,? extends Type> argNameTypes)Creates a record type.TypeTypeSystem. tupleType(java.util.List<? extends Type> argTypes)Creates a tuple type.TypeTypeSystem. tupleType(Type... argTypes)Creates a tuple type from an array of types.Methods in net.hydromatic.morel.type that return types with arguments of type Type Modifier and Type Method Description private com.google.common.collect.ImmutableSortedMap<java.lang.String,Type>DataType. copyTypes(TypeSystem typeSystem, java.util.SortedMap<java.lang.String,Type> typeConstructors, java.util.function.Function<Type,Type> transform)Pair<DataType,Type>TypeSystem. lookupTyCon(java.lang.String tyConName)Methods in net.hydromatic.morel.type with parameters of type Type Modifier and Type Method Description TypeTypeSystem. apply(Type type, java.util.List<Type> types)TypeTypeSystem. ensureClosed(Type type)Converts a type into aForallTypeif it has free type variables.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.TypeTypeSystem. forallType(java.lang.Iterable<TypeVar> typeVars, Type type)Creates a "forall" type.ListTypeTypeSystem. listType(Type elementType)Creates a list type.TypeTypeSystem. tupleType(Type... argTypes)Creates a tuple type from an array of types.private static java.lang.StringBuilderTypeSystem. unparse(java.lang.StringBuilder builder, Type type, int left, int right)Method parameters in net.hydromatic.morel.type with type arguments of type Type Modifier and Type Method Description TypeTypeSystem. apply(Type type, java.util.List<Type> types)(package private) static java.lang.StringDataType. computeDescription(java.util.Map<java.lang.String,Type> tyCons)TypeApplyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeApplyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDataType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDataType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDummyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeDummyType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeFnType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeFnType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeForallType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeForallType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeListType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeListType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypePrimitiveType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypePrimitiveType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeRecordType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeRecordType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTupleType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTupleType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.TypeType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.TypeTypeSystem.TemporaryType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTypeSystem.TemporaryType. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTypeVar. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)TypeTypeVar. copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)private com.google.common.collect.ImmutableSortedMap<java.lang.String,Type>DataType. copyTypes(TypeSystem typeSystem, java.util.SortedMap<java.lang.String,Type> typeConstructors, java.util.function.Function<Type,Type> transform)private com.google.common.collect.ImmutableSortedMap<java.lang.String,Type>DataType. copyTypes(TypeSystem typeSystem, java.util.SortedMap<java.lang.String,Type> typeConstructors, java.util.function.Function<Type,Type> transform)private com.google.common.collect.ImmutableSortedMap<java.lang.String,Type>DataType. copyTypes(TypeSystem typeSystem, java.util.SortedMap<java.lang.String,Type> typeConstructors, java.util.function.Function<Type,Type> transform)DataTypeTypeSystem. dataType(java.lang.String name, java.util.List<TypeVar> typeVars, java.util.Map<java.lang.String,Type> tyCons)Creates a data type.TypeTypeSystem. forallType(int typeCount, java.util.function.Function<TypeSystem.ForallHelper,Type> builder)Creates a "forall" type.TypeTypeSystem. recordType(java.util.SortedMap<java.lang.String,? extends Type> argNameTypes)Creates a record type.TypeTypeSystem. tupleType(java.util.List<? extends Type> argTypes)Creates a tuple type.private static java.lang.StringBuilderTypeSystem. unparseList(java.lang.StringBuilder builder, Op op, int left, int right, java.util.List<? extends Type> argTypes)Constructors in net.hydromatic.morel.type with parameters of type Type Constructor Description ApplyType(Type type, com.google.common.collect.ImmutableList<Type> types, java.lang.String description)Binding(java.lang.String name, Type type, java.lang.Object value)FnType(java.lang.String description, Type paramType, Type resultType)ForallType(java.lang.String description, com.google.common.collect.ImmutableList<TypeVar> typeVars, Type type)ListType(java.lang.String description, Type elementType)Constructor parameters in net.hydromatic.morel.type with type arguments of type Type Constructor Description ApplyType(Type type, com.google.common.collect.ImmutableList<Type> types, java.lang.String description)DataType(TypeSystem typeSystem, java.lang.String name, java.lang.String description, java.util.List<TypeVar> typeVars, java.util.SortedMap<java.lang.String,Type> typeConstructors)Creates a DataType.RecordType(java.lang.String description, com.google.common.collect.ImmutableSortedMap<java.lang.String,Type> argNameTypes)TupleType(java.lang.String description, com.google.common.collect.ImmutableList<Type> argTypes)
-