Uses of Class
net.hydromatic.morel.type.TypeSystem
-
Packages that use TypeSystem 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 TypeSystem in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as TypeSystem Modifier and Type Field Description (package private) TypeSystemTypeResolver.TypeMap. typeSystem(package private) TypeSystemTypeResolver. typeSystemFields in net.hydromatic.morel.compile with type parameters of type TypeSystem Modifier and Type Field Description private java.util.function.Function<TypeSystem,Unifier.Term>TypeResolver.BindTypeEnv. termFactoryjava.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 with parameters of type TypeSystem Modifier and Type Method Description private static java.lang.Iterable<Binding>Compiles. bindings(TypeSystem typeSystem, java.util.Map<java.lang.String,ForeignValue> map)static EnvironmentCompiles. createEnvironment(TypeSystem typeSystem, java.util.Map<java.lang.String,ForeignValue> valueMap)Creates an environment containing the given foreign values.static TypeResolver.ResolvedTypeResolver. deduceType(Environment env, Ast.Decl decl, TypeSystem typeSystem)Deduces the type of a declaration.static voidBuiltIn. forEachType(TypeSystem typeSystem, java.util.function.BiConsumer<java.lang.String,Type> consumer)Calls a consumer once per value.Unifier.TermTypeResolver.BindTypeEnv. get(TypeSystem typeSystem, java.lang.String name)Unifier.TermTypeResolver.EmptyTypeEnv. get(TypeSystem typeSystem, java.lang.String name)Unifier.TermTypeResolver.TypeEnv. get(TypeSystem typeSystem, java.lang.String name)private static CompiledStatementCompiles. prepareDecl(TypeSystem typeSystem, Environment env, Ast.Decl decl)Validates and compiles an declaration, and compiles it to code that can be evaluated by the interpreter.static CompiledStatementCompiles. prepareStatement(TypeSystem typeSystem, Environment env, AstNode statement)Validates and compiles a statement (expression or declaration), and compiles it to code that can be evaluated by the interpreter.Method parameters in net.hydromatic.morel.compile with type arguments of type TypeSystem Modifier and Type Method Description TypeResolver.TypeEnvTypeResolver.BindTypeEnv. bind(java.lang.String name, java.util.function.Function<TypeSystem,Unifier.Term> termFactory)TypeResolver.TypeEnvTypeResolver.EmptyTypeEnv. bind(java.lang.String name, java.util.function.Function<TypeSystem,Unifier.Term> termFactory)TypeResolver.TypeEnvTypeResolver.TypeEnv. bind(java.lang.String name, java.util.function.Function<TypeSystem,Unifier.Term> termFactory)Constructors in net.hydromatic.morel.compile with parameters of type TypeSystem Constructor Description TypeMap(TypeSystem typeSystem, java.util.Map<AstNode,Unifier.Term> nodeTypeTerms, Unifier.Substitution substitution)TypeResolver(TypeSystem typeSystem)Constructor parameters in net.hydromatic.morel.compile with type arguments of type TypeSystem Constructor Description BindTypeEnv(java.lang.String definedName, java.util.function.Function<TypeSystem,Unifier.Term> termFactory, TypeResolver.TypeEnv parent)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 TypeSystem in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type TypeSystem Modifier and Type Method Description static EnvironmentCodes. env(TypeSystem typeSystem, Environment environment)Creates a compilation environment. -
Uses of TypeSystem in net.hydromatic.morel.foreign
Methods in net.hydromatic.morel.foreign with parameters of type TypeSystem Modifier and Type Method Description private TypeCalciteForeignValue. toType(org.apache.calcite.schema.Table table, TypeSystem typeSystem)TypeCalciteForeignValue. type(TypeSystem typeSystem)TypeForeignValue. type(TypeSystem typeSystem) -
Uses of TypeSystem in net.hydromatic.morel.type
Fields in net.hydromatic.morel.type declared as TypeSystem Modifier and Type Field Description private TypeSystemTypeSystem.TemporaryType. typeSystemMethods in net.hydromatic.morel.type with parameters of type TypeSystem Modifier and Type Method Description 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)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)Constructors in net.hydromatic.morel.type with parameters of type TypeSystem Constructor 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.TemporaryType(TypeSystem typeSystem, java.lang.String name)
-