Uses of Class
net.hydromatic.morel.type.Binding
Packages that use Binding
Package
Description
Standard ML interpreter, implemented in Java.
Abstract syntax tree.
Validates programs (represented as
AstNode),
deduces their type, and compiles them into code that can be evaluated.Type system.
-
Uses of Binding in net.hydromatic.morel
Fields in net.hydromatic.morel with type parameters of type BindingModifier and TypeFieldDescriptionMain.Shell.bindingMapContains the environment created by previous commands in this shell.Shell.SubShell.Use.bindingsMethod parameters in net.hydromatic.morel with type arguments of type BindingModifier and TypeMethodDescription(package private) voidConstructor parameters in net.hydromatic.morel with type arguments of type BindingModifierConstructorDescription(package private)Shell(Main main, Environment env0, Consumer<String> echoLines, Consumer<String> outLines, com.google.common.collect.Multimap<String, Binding> bindingMap) (package private)SubShell(Main main, Consumer<String> echoLines, Consumer<String> outLines, com.google.common.collect.Multimap<String, Binding> outBindings, Environment env0) (package private)Use(Environment env, Map<String, Binding> bindings) -
Uses of Binding in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast with type parameters of type BindingModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<Binding> Core.StepEnv.bindingsFromBuilder.bindingsMethods in net.hydromatic.morel.ast with parameters of type BindingMethod parameters in net.hydromatic.morel.ast with type arguments of type BindingConstructor parameters in net.hydromatic.morel.ast with type arguments of type Binding -
Uses of Binding in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as BindingFields in net.hydromatic.morel.compile with type parameters of type BindingModifier and TypeFieldDescriptionCompiles.PatternBinder.bindingsprivate final com.google.common.collect.ImmutableMultimap<Core.IdPat, Binding> Environments.MapEnvironment.instanceMapprivate final Map<Core.NamedPat, Binding> Environments.MapEnvironment.mapMethods in net.hydromatic.morel.compile that return BindingModifier and TypeMethodDescriptionfinal @Nullable BindingReturns the binding ofnameif bound, null if not.abstract @Nullable BindingEnvironment.getOpt(Core.NamedPat id) Returns the binding ofidif bound, null if not.@Nullable BindingEnvironments.EmptyEnvironment.getOpt(Core.NamedPat id) @Nullable BindingEnvironments.MapEnvironment.getOpt(Core.NamedPat id) @Nullable BindingEnvironments.SubEnvironment.getOpt(Core.NamedPat id) abstract @Nullable BindingEnvironment.getOpt2(Core.NamedPat id) Alternative version ofEnvironment.getOpt(Core.NamedPat).@Nullable BindingEnvironments.EmptyEnvironment.getOpt2(Core.NamedPat id) @Nullable BindingEnvironments.MapEnvironment.getOpt2(Core.NamedPat id) @Nullable BindingEnvironments.SubEnvironment.getOpt2(Core.NamedPat id) abstract @Nullable BindingReturns the top binding ofname.@Nullable Binding@Nullable Binding@Nullable BindingMethods in net.hydromatic.morel.compile that return types with arguments of type BindingModifier and TypeMethodDescriptionEnvironment.getValueMap(boolean skipOverloads) Returns a map of the values and bindings.Compiler.sortedBindingMap(Iterable<Binding> bindings) Methods in net.hydromatic.morel.compile with parameters of type BindingModifier and TypeMethodDescriptionprotected Environmentprotected Environmentprotected EnvShuttleCreates a shuttle the same as this but overriding a binding.protected EnvVisitorCreates a visitor the same as this but overriding a binding.Method parameters in net.hydromatic.morel.compile with type arguments of type BindingModifier and TypeMethodDescriptionstatic voidCompiles.acceptBinding(Core.NamedPat namedPat, List<Binding> bindings) static voidCompiles.acceptBinding(TypeSystem typeSystem, Core.Pat pat, List<Binding> bindings) Visits a pattern, adding bindings to a list.(package private) static EnvironmentEnvironments.bind(Environment env, Iterable<Binding> bindings) Creates an environment that is a given environment plus bindings.protected EnvShuttleCreates a shuttle the same as this but with overriding bindings.protected EnvVisitorCreates a visitor the same as this but with overriding bindings.(package private) CalciteCompiler.RelContext(package private) Compiler.Contextfinal EnvironmentCreates an environment that is the same as this, plus the given bindings.static voidCompiles.bindDataType(TypeSystem typeSystem, List<Binding> bindings, DataType dataType) (package private) static Compiles.PatternBinderCompiles.binding(TypeSystem typeSystem, Binding.Kind kind, List<Binding> bindings) private com.google.common.collect.ImmutableList<String> Compiler.bindingNames(List<Binding> bindings) (package private) static voidCompiles.bindPattern(TypeSystem typeSystem, List<Binding> bindings, Core.ValDecl valDecl) Richer thanCompiles.acceptBinding(TypeSystem, Core.Pat, List)because we have the expression.abstract voidEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) Calls a consumer for all bindings ofid.voidEnvironments.EmptyEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) voidEnvironments.MapEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) voidEnvironments.SubEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) private voidCompiler.compileOverDecl(Core.OverDecl overDecl, List<Binding> bindings, List<Compiler.Action> actions) static voidBuiltIn.dataTypes(TypeSystem typeSystem, List<Binding> bindings) Defines built-indatatypeandeqtypeinstances, e.g.private static voidBuiltIn.defineType(TypeSystem ts, List<Binding> bindings, BuiltIn.BuiltInType builtInType) private static voidEnvironments.foreignBindings(TypeSystem typeSystem, Map<String, ForeignValue> map, List<Binding> bindings) private Resolver.ResolvedDeclprivate Resolver.ResolvedDatatypeDeclResolver.resolveDatatypeDecl(Ast.DatatypeDecl decl, List<Binding> bindings) private static Resolver.ResolvedDeclResolver.resolveOverDecl(Ast.OverDecl ignoredDecl, List<Binding> ignoredBindings) private Resolver.ResolvedValDeclResolver.resolveValDecl(Ast.ValDecl valDecl, List<Binding> bindings) Compiler.sortedBindingMap(Iterable<Binding> bindings) (package private) abstract voidVisits every variable binding in this environment.(package private) void(package private) void(package private) voidfinal ResolverBinds a Resolver to an environment that consists of the current environment plus some bindings.Constructors in net.hydromatic.morel.compile with parameters of type BindingModifierConstructorDescription(package private)SubEnvironment(Environment parent, Binding binding) Constructor parameters in net.hydromatic.morel.compile with type arguments of type BindingModifierConstructorDescription(package private)MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat, Binding> map, com.google.common.collect.ImmutableMultimap<Core.IdPat, Binding> instanceMap) (package private)MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat, Binding> map, com.google.common.collect.ImmutableMultimap<Core.IdPat, Binding> instanceMap) (package private)PatternBinder(TypeSystem typeSystem, List<Binding> bindings) -
Uses of Binding in net.hydromatic.morel.type
Methods in net.hydromatic.morel.type that return BindingModifier and TypeMethodDescriptionCreates a binding of a type constructor value.static BindingBinding.inst(Core.NamedPat id, Core.IdPat overloadId, Object value) static BindingBinding.inst(Core.NamedPat id, Core.IdPat overloadId, Core.Exp exp) static BindingBinding.of(Core.NamedPat id) static BindingBinding.of(Core.NamedPat id, Object value) static BindingBinding.of(Core.NamedPat id, Core.Exp exp) static BindingBinding.over(Core.NamedPat id) static BindingBinding.over(Core.NamedPat id, Object value) Binding.withFlattenedName()Used byEnvironment.renumber().Binding.withKind(Binding.Kind kind) Binding.withParameter(boolean parameter)