Uses of Class
net.hydromatic.morel.ast.Core.Exp
-
Packages that use Core.Exp Package Description 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.type Type system. -
-
Uses of Core.Exp in net.hydromatic.morel.ast
Subclasses of Core.Exp in net.hydromatic.morel.ast Modifier and Type Class Description static classCore.ApplyApplication of a function to its argument.static classCore.CaseCase expression.static classCore.FnLambda expression.static classCore.FromFrom expression.static classCore.IdReference to a variable.static classCore.Let"Let" expression.static classCore.LiteralCode of a literal (constant).static classCore.Local"Local" expression.static classCore.RecordSelectorRecord selector function.static classCore.TupleTuple expression.Fields in net.hydromatic.morel.ast declared as Core.Exp Modifier and Type Field Description Core.ExpCore.Aggregate. aggregateCore.ExpCore.Apply. argCore.ExpCore.Aggregate. argumentCore.ExpCore.Scan. conditionCore.ExpCore.Case. expCore.ExpCore.Fn. expCore.ExpCore.Let. expCore.ExpCore.Local. expCore.ExpCore.Match. expCore.ExpCore.NonRecValDecl. expCore.ExpCore.OrderItem. expCore.ExpCore.Scan. expCore.ExpCore.Where. expprivate Core.ExpCore.Wrapper. expCore.ExpCore.Yield. expCore.ExpCore.Apply. fnFields in net.hydromatic.morel.ast with type parameters of type Core.Exp Modifier and Type Field Description List<Core.Exp>Core.Tuple. argsSortedMap<Core.IdPat,Core.Exp>Core.Group. groupExpsMethods in net.hydromatic.morel.ast that return Core.Exp Modifier and Type Method Description Core.ExpCore.Apply. accept(Shuttle shuttle)Core.ExpCore.Case. accept(Shuttle shuttle)abstract Core.ExpCore.Exp. accept(Shuttle shuttle)Core.ExpCore.Fn. accept(Shuttle shuttle)Core.ExpCore.From. accept(Shuttle shuttle)Core.ExpCore.Id. accept(Shuttle shuttle)Core.ExpCore.Let. accept(Shuttle shuttle)Core.ExpCore.Literal. accept(Shuttle shuttle)Core.ExpCore.Local. accept(Shuttle shuttle)Core.ExpCore.Tuple. accept(Shuttle shuttle)Core.ExpCoreBuilder. andAlso(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)private Core.ExpCoreBuilder. args(Type paramType, Core.Exp[] args)private Core.ExpFromBuilder. build(boolean simplify)Core.ExpFromBuilder. buildSimplify()AsFromBuilder.build(boolean), but also simplifies "from x in list" to "list".Core.ExpCore.From. copy(TypeSystem typeSystem, Environment env, List<Core.FromStep> steps)Core.ExpCore.Let. copy(Core.ValDecl decl, Core.Exp exp)Core.ExpCore.Local. copy(DataType dataType, Core.Exp exp)Core.ExpCoreBuilder. elem(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. equal(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. field(TypeSystem typeSystem, Core.Exp exp, int slot)Creates a reference to theslotth field of an expression, "#slot exp".Core.ExpCoreBuilder. greaterThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. implicitYieldExp(TypeSystem typeSystem, List<Core.FromStep> steps)Returns what would be the yield expression if we created aCore.Fromfrom the given steps.Core.ExpCoreBuilder. lessThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. list(TypeSystem typeSystem, Type elementType, List<Core.Exp> args)Creates a list.Core.ExpCoreBuilder. only(TypeSystem typeSystem, Pos pos, Core.Exp a0)Core.ExpCoreBuilder. orElse(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. record(TypeSystem typeSystem, Map<String,? extends Core.Exp> nameExps)Creates a record.protected Core.ExpShuttle. visit(Core.Apply apply)protected Core.ExpShuttle. visit(Core.Case caseOf)protected Core.ExpShuttle. visit(Core.Fn fn)protected Core.ExpShuttle. visit(Core.From from)protected Core.ExpShuttle. visit(Core.Id id)protected Core.ExpShuttle. visit(Core.Let let)protected 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.Exp Modifier and Type Method Description List<Core.Exp>Core.Apply. args()Returns the argument list (assuming that the arguments are a tuple or record).Methods in net.hydromatic.morel.ast with parameters of type Core.Exp Modifier and Type Method Description voidCore.BindingConsumer. accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos)Core.AggregateCoreBuilder. aggregate(Type type, Core.Exp aggregate, @Nullable Core.Exp argument)Core.ExpCoreBuilder. andAlso(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ApplyCoreBuilder. apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)private Core.ExpCoreBuilder. args(Type paramType, Core.Exp[] args)private Core.ApplyCoreBuilder. call(TypeSystem typeSystem, BuiltIn builtIn, Core.Exp... args)Calls a built-in function.private Core.ApplyCoreBuilder. call(TypeSystem typeSystem, BuiltIn builtIn, Type type, Pos pos, Core.Exp... args)Calls a built-in function with one type parameter.Core.CaseCoreBuilder. caseOf(Type type, Core.Exp exp, Iterable<? extends Core.Match> matchList, Pos pos)Core.AggregateCore.Aggregate. copy(Type type, Core.Exp aggregate, Core.Exp argument)Core.ApplyCore.Apply. copy(Core.Exp fn, Core.Exp arg)Core.CaseCore.Case. copy(Core.Exp exp, List<Core.Match> matchList)Core.FnCore.Fn. copy(Core.IdPat idPat, Core.Exp exp)Core.ExpCore.Let. copy(Core.ValDecl decl, Core.Exp exp)Core.ExpCore.Local. copy(DataType dataType, Core.Exp exp)Core.MatchCore.Match. copy(Core.Pat pat, Core.Exp exp)Core.NonRecValDeclCore.NonRecValDecl. copy(Core.NamedPat pat, Core.Exp exp)Core.OrderItemCore.OrderItem. copy(Core.Exp exp, Ast.Direction direction)Core.ScanCore.Scan. copy(List<Binding> bindings, Core.Pat pat, Core.Exp exp, Core.Exp condition)Core.WhereCore.Where. copy(Core.Exp exp, List<Binding> bindings)Core.YieldCore.Yield. copy(List<Binding> bindings, Core.Exp exp)Core.ExpCoreBuilder. elem(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. equal(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ExpCoreBuilder. field(TypeSystem typeSystem, Core.Exp exp, int slot)Creates a reference to theslotth field of an expression, "#slot exp".Core.FnCoreBuilder. fn(FnType type, Core.IdPat idPat, Core.Exp exp)Core.ExpCoreBuilder. greaterThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.CaseCoreBuilder. ifThenElse(Core.Exp condition, Core.Exp ifTrue, Core.Exp ifFalse)private static booleanCore.Wrapper. isValidValue(Core.Exp exp, Object o)Core.ExpCoreBuilder. lessThan(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.LetCoreBuilder. let(Core.ValDecl decl, Core.Exp exp)Core.LocalCoreBuilder. local(DataType dataType, Core.Exp exp)Core.MatchCoreBuilder. match(Core.Pat pat, Core.Exp exp, Pos pos)Core.NonRecValDeclCoreBuilder. nonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)Core.ExpCoreBuilder. only(TypeSystem typeSystem, Pos pos, Core.Exp a0)Core.OrderItemCoreBuilder. orderItem(Core.Exp exp, Ast.Direction direction)Core.ExpCoreBuilder. orElse(TypeSystem typeSystem, Core.Exp a0, Core.Exp a1)Core.ScanCoreBuilder. scan(Op op, List<Binding> bindings, Core.Pat pat, Core.Exp exp, Core.Exp condition)FromBuilderFromBuilder. scan(Core.Pat pat, Core.Exp exp)FromBuilderFromBuilder. scan(Core.Pat pat, Core.Exp exp, Core.Exp condition)Core.TupleCoreBuilder. tuple(RecordLikeType type, Core.Exp... args)Core.LiteralCoreBuilder. valueLiteral(Core.Exp exp, Object value)Creates a value literal.Core.WhereCoreBuilder. where(List<Binding> bindings, Core.Exp exp)FromBuilderFromBuilder. where(Core.Exp condition)(package private) static ComparableCore.Literal. wrap(Core.Exp exp, Object value)Core.YieldCoreBuilder. yield_(List<Binding> bindings, Core.Exp exp)Core.YieldCoreBuilder. yield_(TypeSystem typeSystem, Core.Exp exp)Derives bindings, then callsCoreBuilder.yield_(List, Core.Exp).FromBuilderFromBuilder. yield_(boolean uselessIfLast, @Nullable List<Binding> bindings2, Core.Exp exp)Creates a "yield" step.FromBuilderFromBuilder. yield_(boolean uselessIfLast, Core.Exp exp)FromBuilderFromBuilder. yield_(Core.Exp exp)Method parameters in net.hydromatic.morel.ast with type arguments of type Core.Exp Modifier and Type Method Description Core.GroupCore.Group. copy(SortedMap<Core.IdPat,Core.Exp> groupExps, SortedMap<Core.IdPat,Core.Aggregate> aggregates)Core.TupleCore.Tuple. copy(TypeSystem typeSystem, List<Core.Exp> args)voidCore.Exp. forEachArg(ObjIntConsumer<Core.Exp> action)voidCore.Tuple. forEachArg(ObjIntConsumer<Core.Exp> action)Core.GroupCoreBuilder. group(SortedMap<Core.IdPat,Core.Exp> groupExps, SortedMap<Core.IdPat,Core.Aggregate> aggregates)FromBuilderFromBuilder. group(SortedMap<Core.IdPat,Core.Exp> groupExps, SortedMap<Core.IdPat,Core.Aggregate> aggregates)Core.ExpCoreBuilder. list(TypeSystem typeSystem, Type elementType, List<Core.Exp> args)Creates a list.Core.ExpCoreBuilder. record(TypeSystem typeSystem, Map<String,? extends Core.Exp> nameExps)Creates a record.Core.TupleCoreBuilder. tuple(RecordLikeType type, Iterable<? extends Core.Exp> args)Core.TupleCoreBuilder. tuple(TypeSystem typeSystem, @Nullable RecordLikeType type, Iterable<? extends Core.Exp> args)AsCoreBuilder.tuple(RecordLikeType, Iterable), but derives type.Constructors in net.hydromatic.morel.ast with parameters of type Core.Exp Constructor Description Aggregate(Type type, Core.Exp aggregate, Core.Exp argument)Apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList)Fn(FnType type, Core.IdPat idPat, Core.Exp exp)Let(Core.ValDecl decl, Core.Exp exp)Local(DataType dataType, Core.Exp exp)Match(Pos pos, Core.Pat pat, Core.Exp exp)NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)OrderItem(Core.Exp exp, Ast.Direction direction)Scan(Op op, com.google.common.collect.ImmutableList<Binding> bindings, Core.Pat pat, Core.Exp exp, Core.Exp condition)Where(com.google.common.collect.ImmutableList<Binding> bindings, Core.Exp exp)Wrapper(Core.Exp exp, Object o)Yield(com.google.common.collect.ImmutableList<Binding> bindings, Core.Exp exp)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Core.Exp Constructor Description 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)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.Exp Modifier and Type Field Description (package private) Core.ExpResolver.PatExp. exp(package private) Core.ExpResolver.ResolvedValDecl. expMethods in net.hydromatic.morel.compile that return Core.Exp Modifier and Type Method Description Core.ExpMacro. expand(TypeSystem typeSystem, Environment env, Type argType)private Core.ExpResolver. flattenLet(List<Ast.Decl> decls, Ast.Exp exp)(package private) Core.ExpResolver.FromResolver. run(Ast.From from)private Core.ExpResolver. toCore(Ast.Exp exp)(package private) Core.ExpResolver. toCore(Ast.From from)private Core.ExpResolver. toCore(Ast.Let let)private 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.ExpResolver.ResolvedDatatypeDecl. toExp(List<DataType> dataTypes, Core.Exp resultExp)(package private) Core.ExpResolver.ResolvedDatatypeDecl. toExp(Core.Exp resultExp)(package private) abstract Core.ExpResolver.ResolvedDecl. toExp(Core.Exp resultExp)Converts the declaration to aletor alocal.Core.ExpEnvShuttle. visit(Core.From from)Core.ExpEnvShuttle. visit(Core.Let let)Core.ExpEnvShuttle. visit(Core.Local local)protected Core.ExpInliner. visit(Core.Apply apply)Core.ExpInliner. visit(Core.Id id)Core.ExpInliner. visit(Core.Let let)protected Core.ExpRelationalizer. visit(Core.Apply apply)Core.ExpRelationalizer. visit(Core.From from)Methods in net.hydromatic.morel.compile with parameters of type Core.Exp Modifier and Type Method Description private org.apache.calcite.sql.SqlAggFunctionCalciteCompiler. aggOp(Core.Exp aggregate)Returns the Calcite operator corresponding to a Morel built-in aggregate function.CodeCompiler. compile(Compiler.Context cx, Core.Exp expression)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.CodeCalciteCompiler. compileArg(Compiler.Context cx, Core.Exp expression)CodeCompiler. 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)private static booleanAnalyzer. isAtom(Core.Exp exp)private org.apache.calcite.rex.RexNodeCalciteCompiler. morelScalar(CalciteCompiler.RelContext cx, Core.Exp exp)private Core.ExpResolver.ResolvedDatatypeDecl. toExp(List<DataType> dataTypes, Core.Exp resultExp)(package private) Core.ExpResolver.ResolvedDatatypeDecl. toExp(Core.Exp resultExp)(package private) abstract Core.ExpResolver.ResolvedDecl. toExp(Core.Exp resultExp)Converts the declaration to aletor alocal.(package private) Core.LetResolver.ResolvedValDecl. toExp(Core.Exp resultExp)private Core.FromRelationalizer. toFrom(Core.Exp exp)@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)private CalciteCompiler.RelContextCalciteCompiler. yield_(CalciteCompiler.RelContext cx, Core.Exp exp)Method parameters in net.hydromatic.morel.compile with type arguments of type Core.Exp Modifier and Type Method Description List<Code>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, boolean isDecl, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions)(package private) CompiledStatementCompiler. compileStatement(Environment env, Core.Decl decl, boolean isDecl, Set<Core.Exp> queriesToWrap)private voidCompiler. compileValDecl(Compiler.Context cx, Core.ValDecl valDecl, boolean isDecl, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions)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.Exp Constructor Description PatExp(Core.Pat pat, Core.Exp exp, Pos pos)ResolvedValDecl(boolean rec, com.google.common.collect.ImmutableList<Resolver.PatExp> patExps, Core.NamedPat pat, Core.Exp exp) -
Uses of Core.Exp in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval that return Core.Exp Modifier and Type Method Description private 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.Exp Modifier and Type Field Description Core.ExpBinding. expMethods in net.hydromatic.morel.type with parameters of type Core.Exp Modifier and Type Method Description static BindingBinding. of(Core.NamedPat id, Core.Exp exp)Constructors in net.hydromatic.morel.type with parameters of type Core.Exp Constructor Description Binding(Core.NamedPat id, Core.Exp exp, Object value, boolean parameter)
-