Uses of Class
net.hydromatic.morel.compile.Environment
Packages that use Environment
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.Evaluates expressions.
Provides access to external data sources.
-
Uses of Environment in net.hydromatic.morel
Fields in net.hydromatic.morel declared as EnvironmentModifier and TypeFieldDescriptionprivate final EnvironmentShell.SubShell.envprivate final EnvironmentShell.SubShell.Use.envprotected final EnvironmentMain.Shell.env0Constructors in net.hydromatic.morel with parameters of type EnvironmentModifierConstructorDescription(package private)Shell(Main main, Environment env0, Consumer<String> echoLines, Consumer<String> outLines, Map<String, Binding> bindingMap) (package private)SubShell(Main main, Consumer<String> echoLines, Consumer<String> outLines, Map<String, Binding> outBindings, Environment env0) (package private)SubShell(int depth, int maxDepth, Shell.LineFn lineFn, boolean echo, TypeSystem typeSystem, Environment env, Consumer<String> outLines, Session session, File directory) (package private)Use(Environment env, Map<String, Binding> bindings) -
Uses of Environment in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as EnvironmentMethods in net.hydromatic.morel.ast with parameters of type EnvironmentModifier and TypeMethodDescriptionCore.From.copy(TypeSystem typeSystem, Environment env, List<Core.FromStep> steps) CoreBuilder.fromBuilder(TypeSystem typeSystem, @Nullable Environment env) Creates a builder that will create aCore.From.Constructors in net.hydromatic.morel.ast with parameters of type EnvironmentModifierConstructorDescription(package private)FromBuilder(TypeSystem typeSystem, @Nullable Environment env) -
Uses of Environment in net.hydromatic.morel.compile
Subclasses of Environment in net.hydromatic.morel.compileModifier and TypeClassDescriptionprivate static classEmpty environment.(package private) static classEnvironment that keeps bindings in a map.(package private) static classEnvironment that inherits from a parent environment and adds one binding.Fields in net.hydromatic.morel.compile declared as EnvironmentModifier and TypeFieldDescriptionprivate static final EnvironmentEnvironments.BASIC_ENVIRONMENTAn environment with only "true" and "false".(package private) final EnvironmentCompiler.Context.env(package private) final EnvironmentEnvShuttle.env(package private) final EnvironmentEnvVisitor.envprivate final EnvironmentResolver.env(package private) final EnvironmentSuchThatShuttle.envfinal EnvironmentTypeResolver.Resolved.envprivate final EnvironmentEnvironments.MapEnvironment.parentprivate final EnvironmentEnvironments.SubEnvironment.parentMethods in net.hydromatic.morel.compile that return EnvironmentModifier and TypeMethodDescriptionEnvironment.bind(Core.IdPat id, Object value) Creates an environment that is the same as a given environment, plus one more variable.protected Environment(package private) static EnvironmentEnvironments.bind(Environment env, Iterable<Binding> bindings) Creates an environment that is a given environment plus bindings.protected Environmentfinal EnvironmentCreates an environment that is the same as this, plus the given bindings.static EnvironmentEnvironments.empty()Creates an empty environment.private static EnvironmentEnvironments.env(Environment environment, TypeSystem typeSystem, @Nullable Session session, Map<String, ForeignValue> valueMap) Creates a compilation environment, including built-ins and foreign values.static EnvironmentEnvironments.env(TypeSystem typeSystem, @Nullable Session session, Map<String, ForeignValue> valueMap) Creates an environment containing built-ins and the given foreign values.(package private) abstract EnvironmentEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) If this environment only defines bindings in the given set, returns its parent.(package private) EnvironmentEnvironments.EmptyEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) (package private) EnvironmentEnvironments.MapEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) (package private) EnvironmentEnvironments.SubEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) Environment.plus(Environment env) Returns this environment plus the bindings in the given environment.Methods in net.hydromatic.morel.compile with parameters of type EnvironmentModifier and TypeMethodDescriptionstatic Analyzer.AnalysisAnalyzer.analyze(TypeSystem typeSystem, Environment env, AstNode node) Analyzes an expression.(package private) static EnvironmentEnvironments.bind(Environment env, Iterable<Binding> bindings) Creates an environment that is a given environment plus bindings.final CodeCompiler.compile(Environment env, Core.Exp expression) (package private) CompiledStatementCompiler.compileStatement(Environment env, Core.Decl decl, @Nullable Core.NamedPat skipPat, Set<Core.Exp> queriesToWrap) (package private) static TypeResolver.FieldExpanderTypeResolver.FieldExpander.create(TypeSystem typeSystem, Environment env) protected CalciteFunctions.ContextCalciteCompiler.createContext(Environment env) protected CalciteFunctions.ContextCompiler.createContext(Environment env) Creates a context.static TypeResolver.ResolvedTypeResolver.deduceType(Environment env, Ast.Decl decl, TypeSystem typeSystem) Deduces the datatype of a declaration.private TypeResolver.ResolvedTypeResolver.deduceType_(Environment env, Ast.Decl decl) private static EnvironmentEnvironments.env(Environment environment, TypeSystem typeSystem, @Nullable Session session, Map<String, ForeignValue> valueMap) Creates a compilation environment, including built-ins and foreign values.voidCompiledStatement.eval(Session session, Environment environment, Consumer<String> outLines, Consumer<Binding> outBindings) Evaluates this statement, adding lines of feedback tooutputand writing bindings (values to variables, and types definitions) tobindings.private static EvalEnvCalciteCompiler.evalEnvOf(Environment env) Macro.expand(TypeSystem typeSystem, Environment env, Type argType) private @Nullable TypedValueTypeResolver.FieldExpander.expandField(Environment env, Ast.Exp exp) CalciteCompiler.getRelationalVariables(Environment env, Set<String> nameSet, AstNode node) private static CalciteCompiler.RelContextCalciteCompiler.getRelContext(CalciteCompiler.RelContext cx, Environment env, List<String> names) private static AnalyzerAnalyzer.of(TypeSystem typeSystem, Environment env) Creates an Analyzer.(package private) static Compiler.ContextCompiler.Context.of(Environment env) static InlinerInliner.of(TypeSystem typeSystem, Environment env, Analyzer.Analysis analysis) Creates an Inliner.static RefCheckerRefChecker.of(TypeSystem typeSystem, Environment env) Creates a reference checker.static RelationalizerRelationalizer.of(TypeSystem typeSystem, Environment env) Creates a Relationalizer.static ResolverResolver.of(TypeMap typeMap, Environment env, @Nullable Session session) Creates a root Resolver.(package private) static TypeResolver.ResolvedTypeResolver.Resolved.of(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap) Environment.plus(Environment env) Returns this environment plus the bindings in the given environment.private static CompiledStatementCompiles.prepareDecl(TypeSystem typeSystem, Session session, Environment env, @Nullable Calcite calcite, Ast.Decl decl, Consumer<CompileException> warningConsumer, Tracer tracer) Validates and compiles a declaration, and compiles it to code that can be evaluated by the interpreter.static CompiledStatementCompiles.prepareStatement(TypeSystem typeSystem, Session session, Environment env, AstNode statement, @Nullable Calcite calcite, Consumer<CompileException> warningConsumer, Tracer tracer) Validates and compiles a statement (expression or declaration), and compiles it to code that can be evaluated by the interpreter.protected AnalyzerAnalyzer.push(Environment env) protected abstract EnvShuttleEnvShuttle.push(Environment env) Creates a shuttle the same as this but with a new environment.protected abstract EnvVisitorEnvVisitor.push(Environment env) Creates a visitor the same as this but with a new environment.protected InlinerInliner.push(Environment env) protected RefCheckerRefChecker.push(Environment env) protected RelationalizerRelationalizer.push(Environment env) protected Resolver.ReferenceFinderResolver.ReferenceFinder.push(Environment env) protected EnvVisitorTypeResolver.FieldExpander.push(Environment env) @Nullable org.apache.calcite.rel.RelNodeCalciteCompiler.toRel(Environment env, Core.Exp expression) (package private) CodeCalciteCompiler.toRel4(Environment env, Code code, Type type) (package private) static ObjectResolver.valueOf(Environment env, Core.Exp exp) Resolver.withEnv(Environment env) Binds a Resolver to a new environment.Constructors in net.hydromatic.morel.compile with parameters of type EnvironmentModifierConstructorDescriptionprivateAnalyzer(TypeSystem typeSystem, Environment env, Map<Core.NamedPat, Analyzer.MutableUse> map, Deque<EnvVisitor.FromContext> fromStack) Private constructor.(package private)Context(Environment env) protectedEnvShuttle(TypeSystem typeSystem, Environment env) Creates an EnvShuttle.protectedEnvVisitor(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack) Creates an EnvVisitor.privateFieldExpander(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack) privateInliner(TypeSystem typeSystem, Environment env, Analyzer.Analysis analysis) Private constructor.(package private)MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat, Binding> map) privateRefChecker(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack) protectedReferenceFinder(TypeSystem typeSystem, Environment env, Set<Core.NamedPat> set, Deque<EnvVisitor.FromContext> fromStack) privateRelationalizer(TypeSystem typeSystem, Environment env) Private constructor.(package private)RelContext(Environment env, CalciteCompiler.RelContext parent, org.apache.calcite.tools.RelBuilder relBuilder, com.google.common.collect.ImmutableSortedMap<String, CalciteCompiler.VarData> map, int inputCount) privateResolved(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap) privateResolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat, Type>, Core.NamedPat> variantIdMap, Environment env, @Nullable Session session) (package private)SubEnvironment(Environment parent, Binding binding) (package private)SuchThatShuttle(TypeSystem typeSystem, Environment env) -
Uses of Environment in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval that return EnvironmentModifier and TypeMethodDescriptionstatic EnvironmentCodes.env(TypeSystem typeSystem, Environment environment) Creates a compilation environment.Methods in net.hydromatic.morel.eval with parameters of type EnvironmentModifier and TypeMethodDescriptionstatic ApplicableCodes.aggregate(Environment env0, Code aggregateCode, List<String> names, @Nullable Code argumentCode) static EvalEnvCodes.emptyEnvWith(Session session, Environment env) Creates an evaluation environment that contains the bound values from a compilation environment.static EnvironmentCodes.env(TypeSystem typeSystem, Environment environment) Creates a compilation environment.private static Core.ExpCodes.sysEnv(TypeSystem typeSystem, Environment env, Type argType) -
Uses of Environment in net.hydromatic.morel.foreign
Fields in net.hydromatic.morel.foreign declared as EnvironmentModifier and TypeFieldDescription(package private) final EnvironmentCalcite.CalciteCode.envfinal EnvironmentCalciteFunctions.Context.envMethods in net.hydromatic.morel.foreign with parameters of type EnvironmentModifier and TypeMethodDescriptionCalcite.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 CalciteFunctions.MorelTableFunction.CompiledCalciteFunctions.MorelTableFunction.Compiled.create(String ml, String typeJson, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, Environment env, TypeSystem typeSystem, Session session) CalciteFunctions.Context.withEnv(Environment env) Constructors in net.hydromatic.morel.foreign with parameters of type EnvironmentModifierConstructorDescription(package private)CalciteCode(org.apache.calcite.DataContext dataContext, org.apache.calcite.rel.RelNode rel, Environment env, Function<org.apache.calcite.linq4j.Enumerable<Object[]>, List<Object>> converter) (package private)Compiled(Environment env, TypeSystem typeSystem, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, String ml, String typeJson) Context(Session session, Environment env, TypeSystem typeSystem, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)