Uses of Class
net.hydromatic.morel.ast.Core.Exp
Packages that use Core.Exp
Package
Description
Abstract syntax tree.
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.Evaluates expressions.
Type system.
-
Uses of Core.Exp in net.hydromatic.morel.ast
Subclasses of Core.Exp in net.hydromatic.morel.astModifier and TypeClassDescriptionstatic classApplication of a function to its argument.static classCase expression.static classLambda expression.static classFrom expression.static classReference to a variable.static class"Let" expression.static classCode of a literal (constant).static class"Local" expression.static classRecord selector function.static classTuple expression.Fields in net.hydromatic.morel.ast declared as Core.ExpModifier and TypeFieldDescriptionfinal Core.ExpCore.Aggregate.aggregatefinal Core.ExpCore.Apply.argfinal Core.ExpCore.Aggregate.argumentfinal Core.ExpCore.Scan.conditionfinal Core.ExpCore.Case.expfinal Core.ExpCore.Fn.expfinal Core.ExpCore.Let.expfinal Core.ExpCore.Local.expfinal Core.ExpCore.Match.expfinal Core.ExpCore.NonRecValDecl.expfinal Core.ExpCore.OrderItem.expfinal Core.ExpCore.Scan.expfinal Core.ExpCore.Skip.expfinal Core.ExpCore.Take.expfinal Core.ExpCore.Where.expprivate final Core.ExpCore.Wrapper.expfinal Core.ExpCore.Yield.expfinal Core.ExpCore.Apply.fnFields in net.hydromatic.morel.ast with type parameters of type Core.ExpModifier and TypeFieldDescriptionCore.Tuple.argsfinal SortedMap<Core.IdPat, Core.Exp> Core.Group.groupExpsMethods in net.hydromatic.morel.ast that return Core.ExpModifier and TypeMethodDescriptionabstract Core.ExpCoreBuilder.andAlso(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.andAlso(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) Core.Apply.arg(int i) Core.Exp.arg(int i) Returns theith argument.Core.Tuple.arg(int i) private Core.Expprivate Core.ExpFromBuilder.build(boolean simplify) FromBuilder.buildSimplify()AsFromBuilder.build(boolean), but also simplifies "from x in list" to "list".Core.From.copy(TypeSystem typeSystem, Environment env, List<Core.FromStep> steps) Core.Let.copy(Core.ValDecl decl, Core.Exp exp) CoreBuilder.elem(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.equal(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.extent(TypeSystem typeSystem, Type type, com.google.common.collect.RangeSet<Comparable> rangeSet) Creates an extent.CoreBuilder.field(TypeSystem typeSystem, Core.Exp exp, int slot) Creates a reference to theslotth field of an expression, "#slot exp".CoreBuilder.greaterThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.greaterThanOrEqualTo(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.implicitYieldExp(TypeSystem typeSystem, List<Core.FromStep> steps) Returns what would be the yield expression if we created aCore.Fromfrom the given steps.CoreBuilder.intersect(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.intersect(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.lessThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.list(TypeSystem typeSystem, Core.Exp arg0, Core.Exp... args) Creates a list with one or more elements.CoreBuilder.list(TypeSystem typeSystem, Type elementType, List<Core.Exp> args) Creates a list.CoreBuilder.notEqual(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.only(TypeSystem typeSystem, Pos pos, Core.Exp a0) CoreBuilder.orElse(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.orElse(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.record(TypeSystem typeSystem, Map<String, ? extends Core.Exp> nameExps) Creates a record.(package private) Core.ExpCoreBuilder.simplify(TypeSystem typeSystem, Core.Exp exp) Simplifies an expression.CoreBuilder.union(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.union(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) protected Core.ExpShuttle.visit(Core.Apply apply) protected Core.Expprotected Core.Expprotected Core.Expprotected Core.Expprotected Core.Expprotected Core.ExpShuttle.visit(Core.Literal literal) protected Core.ExpShuttle.visit(Core.Local local) protected Core.ExpShuttle.visit(Core.Tuple tuple) Methods in net.hydromatic.morel.ast that return types with arguments of type Core.ExpModifier and TypeMethodDescriptionCore.Apply.args()Returns the argument list (assuming that the arguments are a tuple or record).CoreBuilder.mergeExtents(TypeSystem typeSystem, List<? extends Core.Exp> exps, boolean intersect) CoreBuilder.mergeExtents(TypeSystem typeSystem, List<? extends Core.Exp> exps, boolean intersect) Methods in net.hydromatic.morel.ast with parameters of type Core.ExpModifier and TypeMethodDescriptionvoidCore.BindingConsumer.accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos) CoreBuilder.andAlso(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) Creates aCore.Apply.CoreBuilder.apply(Pos pos, TypeSystem typeSystem, BuiltIn builtIn, Core.Exp arg0, Core.Exp arg1, Core.Exp... args) Creates aCore.Applywith two or more arguments, packing the arguments into a tuple.private Core.Expprivate Core.ApplyCoreBuilder.call(TypeSystem typeSystem, BuiltIn builtIn, Core.Exp... args) Calls a built-in function.private Core.ApplyCalls a built-in function with one type parameter.Core.Case.copy(Core.Exp exp, List<Core.Match> matchList) Core.Fn.copy(Core.IdPat idPat, Core.Exp exp) Core.Let.copy(Core.ValDecl decl, Core.Exp exp) Core.NonRecValDecl.copy(Core.NamedPat pat, Core.Exp exp) Core.OrderItem.copy(Core.Exp exp, Ast.Direction direction) CoreBuilder.elem(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.equal(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.field(TypeSystem typeSystem, Core.Exp exp, int slot) Creates a reference to theslotth field of an expression, "#slot exp".CoreBuilder.fn(FnType type, Core.IdPat idPat, Core.Exp exp) CoreBuilder.greaterThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.greaterThanOrEqualTo(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.ifThenElse(Core.Exp condition, Core.Exp ifTrue, Core.Exp ifFalse) CoreBuilder.intersect(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) private static booleanCore.Wrapper.isValidValue(Core.Exp exp, Object o) CoreBuilder.lessThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.let(Core.ValDecl decl, Core.Exp exp) CoreBuilder.list(TypeSystem typeSystem, Core.Exp arg0, Core.Exp... args) Creates a list with one or more elements.CoreBuilder.nonRecValDecl(Pos pos, Core.NamedPat pat, Core.Exp exp) CoreBuilder.notEqual(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.only(TypeSystem typeSystem, Pos pos, Core.Exp a0) CoreBuilder.orderItem(Core.Exp exp, Ast.Direction direction) CoreBuilder.orElse(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) (package private) Core.ExpCoreBuilder.simplify(TypeSystem typeSystem, Core.Exp exp) Simplifies an expression.CoreBuilder.tuple(RecordLikeType type, Core.Exp... args) CoreBuilder.tuple(TypeSystem typeSystem, Core.Exp... args) CoreBuilder.union(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1) CoreBuilder.valueLiteral(Core.Exp exp, Object value) Creates a value literal.(package private) static ComparableCoreBuilder.yield_(TypeSystem typeSystem, Core.Exp exp) Derives bindings, then callsCoreBuilder.yield_(List, Core.Exp).Creates a "yield" step.Method parameters in net.hydromatic.morel.ast with type arguments of type Core.ExpModifier and TypeMethodDescriptionCoreBuilder.andAlso(TypeSystem typeSystem, Iterable<Core.Exp> exps) Core.Group.copy(SortedMap<Core.IdPat, Core.Exp> groupExps, SortedMap<Core.IdPat, Core.Aggregate> aggregates) Core.Tuple.copy(TypeSystem typeSystem, List<Core.Exp> args) voidCore.Exp.forEachArg(ObjIntConsumer<Core.Exp> action) voidCore.Tuple.forEachArg(ObjIntConsumer<Core.Exp> action) CoreBuilder.group(SortedMap<Core.IdPat, Core.Exp> groupExps, SortedMap<Core.IdPat, Core.Aggregate> aggregates) FromBuilder.group(SortedMap<Core.IdPat, Core.Exp> groupExps, SortedMap<Core.IdPat, Core.Aggregate> aggregates) CoreBuilder.intersect(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.list(TypeSystem typeSystem, Type elementType, List<Core.Exp> args) Creates a list.CoreBuilder.mergeExtents(TypeSystem typeSystem, List<? extends Core.Exp> exps, boolean intersect) CoreBuilder.orElse(TypeSystem typeSystem, Iterable<Core.Exp> exps) CoreBuilder.record(TypeSystem typeSystem, Map<String, ? extends Core.Exp> nameExps) Creates a record.CoreBuilder.tuple(RecordLikeType type, Iterable<? extends Core.Exp> args) CoreBuilder.tuple(TypeSystem typeSystem, @Nullable RecordLikeType type, Iterable<? extends Core.Exp> args) AsCoreBuilder.tuple(RecordLikeType, Iterable), but derives type.CoreBuilder.union(TypeSystem typeSystem, Iterable<Core.Exp> exps) Constructors in net.hydromatic.morel.ast with parameters of type Core.ExpModifierConstructorDescription(package private)(package private)(package private)Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList) (package private)Fn(FnType type, Core.IdPat idPat, Core.Exp exp) (package private)Let(Core.ValDecl decl, Core.Exp exp) (package private)(package private)(package private)NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos) (package private)OrderItem(Core.Exp exp, Ast.Direction direction) (package private)Scan(Op op, com.google.common.collect.ImmutableList<Binding> bindings, Core.Pat pat, Core.Exp exp, Core.Exp condition) (package private)(package private)(package private)private(package private)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Core.ExpModifierConstructorDescription(package private)Group(com.google.common.collect.ImmutableList<Binding> bindings, com.google.common.collect.ImmutableSortedMap<Core.IdPat, Core.Exp> groupExps, com.google.common.collect.ImmutableSortedMap<Core.IdPat, Core.Aggregate> aggregates) (package private)Tuple(RecordLikeType type, com.google.common.collect.ImmutableList<Core.Exp> args) -
Uses of Core.Exp in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Core.ExpModifier and TypeFieldDescription(package private) final Core.ExpResolver.PatExp.exp(package private) final Core.ExpResolver.ResolvedValDecl.exp(package private) final Core.ExpExtents.ExtentFilter.extent(package private) final Core.ExpExtents.Analysis.extentExpFields in net.hydromatic.morel.compile with type parameters of type Core.ExpModifier and TypeFieldDescription(package private) final SortedMap<Core.NamedPat, Core.Exp> Extents.Analysis.boundPats(package private) final SortedMap<Core.NamedPat, Core.Exp> Extents.Extent.boundPats(package private) final com.google.common.collect.ImmutableList<Core.Exp> Extents.ExtentFilter.filtersExtents.Analysis.remainingFiltersMethods in net.hydromatic.morel.compile that return Core.ExpModifier and TypeMethodDescriptionprivate Core.ExpMacro.expand(TypeSystem typeSystem, Environment env, Type argType) private Core.ExpResolver.flattenLet(List<Ast.Decl> decls, Ast.Exp exp) static Core.ExpExtents.generator(TypeSystem typeSystem, Core.Pat pat, Core.Exp exp) Returns an expression that generates the extent of a pattern.private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.Expprivate @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) (package private) Core.Expprivate Core.Exp(package private) Core.Expprivate Core.Expprivate Core.ExpResolver.toCore(Ast.ListExp list) private Core.ExpResolver.toCoreFromEq(Ast.Exp exp) Translates "x" in "from e = x".static Core.ExpCompiles.toExp(Core.NonRecValDecl decl) private Core.Exp(package private) Core.Exp(package private) abstract Core.ExpConverts the declaration to aletor alocal.EnvShuttle.visit(Core.Local local) protected Core.ExpInliner.visit(Core.Apply apply) protected Core.ExpRelationalizer.visit(Core.Apply apply) protected Core.ExpMethods in net.hydromatic.morel.compile that return types with arguments of type Core.ExpModifier and TypeMethodDescriptionSuchThatShuttle.conjunctions(Core.Exp e) Returns an expression as a list of conjunctions.Methods in net.hydromatic.morel.compile with parameters of type Core.ExpModifier and TypeMethodDescriptionprivate static voidSuchThatShuttle.addConjunctions(com.google.common.collect.ImmutableList.Builder<Core.Exp> b, Core.Exp e) private org.apache.calcite.sql.SqlAggFunctionReturns the Calcite operator corresponding to a Morel built-in aggregate function.private Core.ExpCompiler.compile(Compiler.Context cx, Core.Exp expression) final CodeCompiler.compile(Environment env, Core.Exp expression) private ApplicableCompiler.compileApplicable(Compiler.Context cx, Core.Exp fn, Type argType, Pos pos) Compiles a function value to anApplicable, if possible, or returns null.CalciteCompiler.compileArg(Compiler.Context cx, Core.Exp expression) Compiler.compileArg(Compiler.Context cx, Core.Exp expression) Compiles the argument to "apply".private CodeCompiler.compileCall(Compiler.Context cx, BuiltIn builtIn, Core.Exp arg, Pos pos) SuchThatShuttle.conjunctions(Core.Exp e) Returns an expression as a list of conjunctions.static Extents.AnalysisExtents.create(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats, Core.Exp exp) private void(package private) voidprivate voidExtents.Extent.g4(com.google.common.collect.Multimap<Core.Pat, Core.Exp> map, BuiltIn builtIn, Core.Exp arg0, Core.Exp arg1) static Core.ExpExtents.generator(TypeSystem typeSystem, Core.Pat pat, Core.Exp exp) Returns an expression that generates the extent of a pattern.private static booleanprivate static booleanReturns whether an expression corresponds exactly to a pattern.private org.apache.calcite.rex.RexNodeCalciteCompiler.morelScalar(CalciteCompiler.RelContext cx, Core.Exp exp) (package private) static SuchThatShuttle.PatMapprivate static voidSuchThatShuttle.PatMap.populate(Core.Pat pat, Core.Exp exp, com.google.common.collect.ImmutableMap.Builder<Core.NamedPat, Core.NamedPat> nameBuilder) private Core.Expprivate @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private Core.Exp(package private) Core.Exp(package private) abstract Core.ExpConverts the declaration to aletor alocal.(package private) Core.Letprivate Core.From@Nullable org.apache.calcite.rel.RelNodeCalciteCompiler.toRel(Environment env, Core.Exp expression) private org.apache.calcite.rel.RelNodeCalciteCompiler.toRel2(CalciteCompiler.RelContext cx, Core.Exp expression) (package private) booleanCalciteCompiler.toRel3(CalciteCompiler.RelContext cx, Core.Exp expression, boolean aggressive) private org.apache.calcite.rex.RexNodeCalciteCompiler.translate(CalciteCompiler.RelContext cx, Core.Exp exp) (package private) static ObjectResolver.valueOf(Environment env, Core.Exp exp) private CalciteCompiler.RelContextCalciteCompiler.yield_(CalciteCompiler.RelContext cx, List<Binding> bindings, Core.Exp exp) Method parameters in net.hydromatic.morel.compile with type arguments of type Core.ExpModifier and TypeMethodDescriptionprivate static voidSuchThatShuttle.addConjunctions(com.google.common.collect.ImmutableList.Builder<Core.Exp> b, Core.Exp e) Compiler.compileArgs(Compiler.Context cx, Iterable<? extends Core.Exp> expressions) Compiles the tuple arguments to "apply".(package private) voidCompiler.compileDecl(Compiler.Context cx, Core.Decl decl, @Nullable Core.NamedPat skipPat, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions) (package private) CompiledStatementCompiler.compileStatement(Environment env, Core.Decl decl, @Nullable Core.NamedPat skipPat, Set<Core.Exp> queriesToWrap) private voidCompiler.compileValDecl(Compiler.Context cx, Core.ValDecl valDecl, @Nullable Core.Pat skipPat, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions) static Extents.AnalysisExtents.create(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats, Core.Exp exp) private void(package private) voidprivate voidExtents.Extent.g4(com.google.common.collect.Multimap<Core.Pat, Core.Exp> map, BuiltIn builtIn, Core.Exp arg0, Core.Exp arg1) private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.Expprivate @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private List<org.apache.calcite.rex.RexNode> CalciteCompiler.translateList(CalciteCompiler.RelContext cx, List<Core.Exp> exps) Constructors in net.hydromatic.morel.compile with parameters of type Core.ExpModifierConstructorDescription(package private)Analysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> remainingFilters) (package private)ExtentFilter(Core.Exp extent, com.google.common.collect.ImmutableList<Core.Exp> filters) (package private)(package private)ResolvedValDecl(boolean rec, com.google.common.collect.ImmutableList<Resolver.PatExp> patExps, Core.NamedPat pat, Core.Exp exp) Constructor parameters in net.hydromatic.morel.compile with type arguments of type Core.ExpModifierConstructorDescription(package private)Analysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> remainingFilters) (package private)Analysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> remainingFilters) (package private)Extent(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats) (package private)ExtentFilter(Core.Exp extent, com.google.common.collect.ImmutableList<Core.Exp> filters) -
Uses of Core.Exp in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval that return Core.ExpModifier and TypeMethodDescriptionprivate static Core.ExpCodes.sysEnv(TypeSystem typeSystem, Environment env, Type argType) -
Uses of Core.Exp in net.hydromatic.morel.type
Fields in net.hydromatic.morel.type declared as Core.ExpMethods in net.hydromatic.morel.type with parameters of type Core.ExpConstructors in net.hydromatic.morel.type with parameters of type Core.ExpModifierConstructorDescriptionprivateBinding(Core.NamedPat id, Core.Exp exp, Object value, boolean parameter)