Uses of Class
net.hydromatic.morel.eval.Session
Packages that use Session
Package
Description
Standard ML interpreter, implemented in Java.
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 Session in net.hydromatic.morel
Fields in net.hydromatic.morel declared as SessionModifier and TypeFieldDescription(package private) final SessionMain.sessionprivate final SessionShell.SubShell.sessionMethods in net.hydromatic.morel with parameters of type SessionModifier and TypeMethodDescription(package private) voidMain.Shell.run(Session session, Main.BufferingReader in2) Constructors in net.hydromatic.morel with parameters of type SessionModifierConstructorDescription(package private)SubShell(int depth, int maxDepth, Shell.LineFn lineFn, boolean echo, TypeSystem typeSystem, Environment env, Consumer<String> outLines, Session session, File directory) -
Uses of Session in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as SessionFields in net.hydromatic.morel.compile with type parameters of type SessionMethods in net.hydromatic.morel.compile with parameters of type SessionModifier and TypeMethodDescriptionprivate 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.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.static ResolverResolver.of(TypeMap typeMap, Environment env, @Nullable Session session) Creates a root Resolver.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.Constructors in net.hydromatic.morel.compile with parameters of type SessionModifierConstructorDescriptionprivateResolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat, Type>, Core.NamedPat> variantIdMap, Environment env, @Nullable Session session) -
Uses of Session in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type SessionModifier and TypeMethodDescriptionstatic EvalEnvCodes.emptyEnvWith(Session session, Environment env) Creates an evaluation environment that contains the bound values from a compilation environment.Method parameters in net.hydromatic.morel.eval with type arguments of type SessionModifier and TypeMethodDescriptionvoidSession.withoutHandlingExceptions(Consumer<Session> consumer) Calls some code with aSession.Shellthat does not handle errors. -
Uses of Session in net.hydromatic.morel.foreign
Fields in net.hydromatic.morel.foreign declared as SessionMethods in net.hydromatic.morel.foreign with parameters of type SessionModifier and TypeMethodDescription(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) Constructors in net.hydromatic.morel.foreign with parameters of type SessionModifierConstructorDescriptionContext(Session session, Environment env, TypeSystem typeSystem, org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)