Uses of Class
net.hydromatic.morel.compile.Environment
-
Packages that use Environment Package Description net.hydromatic.morel Standard ML interpreter, implemented in Java.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. -
-
Uses of Environment in net.hydromatic.morel
Fields in net.hydromatic.morel declared as Environment Modifier and Type Field Description private EnvironmentShell.SubShell. envprivate EnvironmentShell.SubShell.Use. envprotected EnvironmentMain.Shell. env0Constructors in net.hydromatic.morel with parameters of type Environment Constructor Description Shell(Main main, Environment env0, Consumer<String> outLines, Map<String,Binding> bindingMap)SubShell(Main main, Consumer<String> outLines, Map<String,Binding> outBindings, Environment env0)SubShell(int depth, int maxDepth, Shell.LineFn lineFn, boolean echo, TypeSystem typeSystem, Environment env, Consumer<String> outLines, Session session, File directory)Use(Environment env, Map<String,Binding> bindings) -
Uses of Environment in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as Environment Modifier and Type Field Description private @Nullable EnvironmentFromBuilder. envMethods in net.hydromatic.morel.ast with parameters of type Environment Modifier and Type Method Description Core.ExpCore.From. copy(TypeSystem typeSystem, Environment env, List<Core.FromStep> steps)FromBuilderCoreBuilder. fromBuilder(TypeSystem typeSystem, @Nullable Environment env)Creates a builder that will create aCore.From.Constructors in net.hydromatic.morel.ast with parameters of type Environment Constructor Description FromBuilder(TypeSystem typeSystem, @Nullable Environment env) -
Uses of Environment in net.hydromatic.morel.compile
Subclasses of Environment in net.hydromatic.morel.compile Modifier and Type Class Description private static classEnvironments.EmptyEnvironmentEmpty environment.(package private) static classEnvironments.MapEnvironmentEnvironment that keeps bindings in a map.(package private) static classEnvironments.SubEnvironmentEnvironment that inherits from a parent environment and adds one binding.Fields in net.hydromatic.morel.compile declared as Environment Modifier and Type Field Description private static EnvironmentEnvironments. BASIC_ENVIRONMENTAn environment with only "true" and "false".(package private) EnvironmentCompiler.Context. env(package private) EnvironmentEnvShuttle. env(package private) EnvironmentEnvVisitor. envprivate EnvironmentResolver. envEnvironmentTypeResolver.Resolved. envprivate EnvironmentEnvironments.MapEnvironment. parentprivate EnvironmentEnvironments.SubEnvironment. parentMethods in net.hydromatic.morel.compile that return Environment Modifier and Type Method Description EnvironmentEnvironment. bind(Core.IdPat id, Object value)Creates an environment that is the same as a given environment, plus one more variable.protected EnvironmentEnvironment. bind(Binding binding)(package private) static EnvironmentEnvironments. bind(Environment env, Iterable<Binding> bindings)Creates an environment that is a given environment plus bindings.protected EnvironmentEnvironments.SubEnvironment. bind(Binding binding)EnvironmentEnvironment. bindAll(Iterable<Binding> bindings)Creates 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, Map<String,ForeignValue> valueMap)Creates a compilation environment, including built-ins and foreign values.static EnvironmentEnvironments. env(TypeSystem typeSystem, 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)EnvironmentEnvironment. plus(Environment env)Returns this environment plus the bindings in the given environment.Methods in net.hydromatic.morel.compile with parameters of type Environment Modifier and Type Method Description static 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.CodeCompiler. compile(Environment env, Core.Exp expression)(package private) CompiledStatementCompiler. compileStatement(Environment env, Core.Decl decl, boolean isDecl, Set<Core.Exp> queriesToWrap)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 type of a declaration.private TypeResolver.ResolvedTypeResolver. deduceType_(Environment env, Ast.Decl decl)private static EnvironmentEnvironments. env(Environment environment, TypeSystem typeSystem, 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)Core.ExpMacro. expand(TypeSystem typeSystem, Environment env, Type argType)private Set<String>CalciteCompiler. getRelationalVariables(Environment env, Set<String> nameSet, AstNode node)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)Creates a root Resolver.(package private) static TypeResolver.ResolvedTypeResolver.Resolved. of(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap)EnvironmentEnvironment. 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, boolean isDecl, 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.@Nullable org.apache.calcite.rel.RelNodeCalciteCompiler. toRel(Environment env, Core.Exp expression)(package private) CodeCalciteCompiler. toRel4(Environment env, Code code, Type type)ResolverResolver. withEnv(Environment env)Binds a Resolver to a new environment.Constructors in net.hydromatic.morel.compile with parameters of type Environment Constructor Description Analyzer(TypeSystem typeSystem, Environment env, Map<Core.NamedPat,Analyzer.MutableUse> map, Deque<EnvVisitor.FromContext> fromStack)Private constructor.Context(Environment env)EnvShuttle(TypeSystem typeSystem, Environment env)Creates an EnvShuttle.EnvVisitor(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack)Creates an EnvVisitor.Inliner(TypeSystem typeSystem, Environment env, Analyzer.Analysis analysis)Private constructor.MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat,Binding> map)RefChecker(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack)ReferenceFinder(TypeSystem typeSystem, Environment env, Set<Core.NamedPat> set, Deque<EnvVisitor.FromContext> fromStack)Relationalizer(TypeSystem typeSystem, Environment env)Private constructor.RelContext(Environment env, CalciteCompiler.RelContext parent, org.apache.calcite.tools.RelBuilder relBuilder, com.google.common.collect.ImmutableSortedMap<String,CalciteCompiler.VarData> map, int inputCount)Resolved(Environment env, Ast.Decl originalNode, Ast.Decl node, TypeMap typeMap)Resolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat,Type>,Core.NamedPat> variantIdMap, Environment env)SubEnvironment(Environment parent, Binding binding) -
Uses of Environment in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval that return Environment Modifier and Type Method Description static EnvironmentCodes. env(TypeSystem typeSystem, Environment environment)Creates a compilation environment.Methods in net.hydromatic.morel.eval with parameters of type Environment Modifier and Type Method Description static ApplicableCodes. aggregate(Environment env0, Code aggregateCode, List<String> names, 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 Environment Modifier and Type Field Description (package private) EnvironmentCalcite.CalciteCode. envEnvironmentCalciteFunctions.Context. envMethods in net.hydromatic.morel.foreign with parameters of type Environment 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 CalciteFunctions.MorelTableFunction.CompiledCalciteFunctions.MorelTableFunction.Compiled. create(String ml, String typeJson, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory, Environment env, TypeSystem typeSystem, Session session)CalciteFunctions.ContextCalciteFunctions.Context. withEnv(Environment env)Constructors in net.hydromatic.morel.foreign with parameters of type Environment Constructor Description CalciteCode(org.apache.calcite.DataContext dataContext, org.apache.calcite.rel.RelNode rel, Environment env, Function<org.apache.calcite.linq4j.Enumerable<Object[]>,List<Object>> converter)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)
-