Uses of Interface
net.hydromatic.morel.eval.Code
-
Packages that use Code Package Description 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. -
-
Uses of Code in net.hydromatic.morel.compile
Classes in net.hydromatic.morel.compile that implement Code Modifier and Type Class Description private static classCompiler.LinkCodeA piece of code that is references another piece of code.Fields in net.hydromatic.morel.compile declared as Code Modifier and Type Field Description private CodeCompiler.LinkCode. refCodeMethods in net.hydromatic.morel.compile that return Code Modifier and Type Method Description CodeCompiler. compile(Environment env, Ast.Exp expression)private CodeCompiler. compileAggregate(Environment env, Ast.Aggregate aggregate)private CodeCompiler. compileInfix(Environment env, Ast.InfixCall call)private CodeCompiler. compileLet(Environment env, java.util.List<Ast.Decl> decls, Ast.Exp e)private CodeCompiler. compileLet(Environment env, Ast.Decl decl, Ast.Exp e)private CodeCompiler. compileMatchList(Environment env, java.lang.Iterable<Ast.Match> matchList)Compiles amatchexpression.private CodeCompiler. compileUnary(Environment env, Ast.Exp call)Methods in net.hydromatic.morel.compile with parameters of type Code Modifier and Type Method Description private voidCompiler. link(java.util.Map<Ast.IdPat,Compiler.LinkCode> linkCodes, Ast.Pat pat, Code code)Method parameters in net.hydromatic.morel.compile with type arguments of type Code Modifier and Type Method Description private voidCompiler. compileDecl(Environment env, Ast.Decl decl, java.util.List<Code> varCodes, java.util.List<Binding> bindings, java.util.List<Compiler.Action> actions)private voidCompiler. compileValBind(Environment env, Ast.ValBind valBind, java.util.List<Code> varCodes, java.util.List<Binding> bindings, java.util.List<Compiler.Action> actions)private voidCompiler. compileValDecl(Environment env, Ast.ValDecl valDecl, java.util.List<Code> varCodes, java.util.List<Binding> bindings, java.util.List<Compiler.Action> actions) -
Uses of Code in net.hydromatic.morel.eval
Classes in net.hydromatic.morel.eval that implement Code Modifier and Type Class Description static classCodes.TupleCodeA code that evaluates expressions and creates a tuple with the results.Fields in net.hydromatic.morel.eval with type parameters of type Code Modifier and Type Field Description java.util.List<Code>Codes.TupleCode. codesprivate com.google.common.collect.ImmutableList<Pair<Ast.Pat,Code>>Closure. patCodesA list of (pattern, code) pairs.Methods in net.hydromatic.morel.eval that return Code Modifier and Type Method Description static CodeCodes. andAlso(Code code0, Code code1)Returns a Code that evaluates "andalso".static CodeCodes. apply(Applicable fnValue, Code argCode)Generates the code for applying a function value to an argument.static CodeCodes. apply(Code fnCode, Code argCode)Generates the code for applying a function (or function value) to an argument.default CodeApplicable. asCode()Converts this Applicable to a Code that has similar effect (but is less efficient).static CodeCodes. caret(Code code0, Code code1)Returns a Code that evaluates "^" (string concatenation).static CodeCodes. cons(Code code0, Code code1)Returns a Code that evaluates "::" (list cons).static CodeCodes. constant(java.lang.Comparable value)Returns a Code that evaluates to the same value in all environments.static CodeCodes. div(Code code0, Code code1)Returns a Code that evaluates "div".static CodeCodes. divide(Code code0, Code code1)Returns a Code that evaluates "/".static CodeCodes. eq(Code code0, Code code1)Returns a Code that evaluates "=".static CodeCodes. from(java.util.Map<Ast.Id,Code> sources, Code filterCode, Code yieldCode)static CodeCodes. fromGroup(java.util.Map<Ast.Id,Code> sources, Code filterCode, java.util.List<Code> groupCodes, java.util.List<Applicable> aggregateCodes, java.util.List<java.lang.String> labels)static CodeCodes. ge(Code code0, Code code1)Returns a Code that evaluates ">=".static CodeCodes. get(java.lang.String name)Returns a Code that returns the value of variable "name" in the current environment.static CodeCodes. gt(Code code0, Code code1)Returns a Code that evaluates ">".static CodeCodes. ifThenElse(Code condition, Code ifTrue, Code ifFalse)static CodeCodes. le(Code code0, Code code1)Returns a Code that evaluates "<=".static CodeCodes. let(java.util.List<Code> fnCodes, Code argCode)static CodeCodes. list(java.lang.Iterable<? extends Code> codes)static CodeCodes. lt(Code code0, Code code1)Returns a Code that evaluates "<".static CodeCodes. minus(Code code0, Code code1)Returns a Code that evaluates "-".static CodeCodes. mod(Code code0, Code code1)Returns a Code that evaluates "mod".static CodeCodes. ne(Code code0, Code code1)Returns a Code that evaluates "<>".static CodeCodes. negate(Code code)static CodeCodes. orElse(Code code0, Code code1)Returns a Code that evaluates "orelse".static CodeCodes. plus(Code code0, Code code1)Returns a Code that evaluates "+".static CodeCodes. times(Code code0, Code code1)Returns a Code that evaluates "*".static CodeCodes. tuple(java.lang.Iterable<? extends Code> codes)Methods in net.hydromatic.morel.eval with parameters of type Code Modifier and Type Method Description static ApplicableCodes. aggregate(Environment env, Code aggregate, Code argumentCode)static CodeCodes. andAlso(Code code0, Code code1)Returns a Code that evaluates "andalso".static CodeCodes. apply(Applicable fnValue, Code argCode)Generates the code for applying a function value to an argument.static CodeCodes. apply(Code fnCode, Code argCode)Generates the code for applying a function (or function value) to an argument.static CodeCodes. caret(Code code0, Code code1)Returns a Code that evaluates "^" (string concatenation).static CodeCodes. cons(Code code0, Code code1)Returns a Code that evaluates "::" (list cons).static CodeCodes. div(Code code0, Code code1)Returns a Code that evaluates "div".static CodeCodes. divide(Code code0, Code code1)Returns a Code that evaluates "/".static CodeCodes. eq(Code code0, Code code1)Returns a Code that evaluates "=".static CodeCodes. from(java.util.Map<Ast.Id,Code> sources, Code filterCode, Code yieldCode)static CodeCodes. fromGroup(java.util.Map<Ast.Id,Code> sources, Code filterCode, java.util.List<Code> groupCodes, java.util.List<Applicable> aggregateCodes, java.util.List<java.lang.String> labels)static CodeCodes. ge(Code code0, Code code1)Returns a Code that evaluates ">=".static CodeCodes. gt(Code code0, Code code1)Returns a Code that evaluates ">".static CodeCodes. ifThenElse(Code condition, Code ifTrue, Code ifFalse)static CodeCodes. le(Code code0, Code code1)Returns a Code that evaluates "<=".static CodeCodes. let(java.util.List<Code> fnCodes, Code argCode)static CodeCodes. lt(Code code0, Code code1)Returns a Code that evaluates "<".static CodeCodes. minus(Code code0, Code code1)Returns a Code that evaluates "-".static CodeCodes. mod(Code code0, Code code1)Returns a Code that evaluates "mod".static CodeCodes. ne(Code code0, Code code1)Returns a Code that evaluates "<>".static CodeCodes. negate(Code code)static CodeCodes. orElse(Code code0, Code code1)Returns a Code that evaluates "orelse".static CodeCodes. plus(Code code0, Code code1)Returns a Code that evaluates "+".static CodeCodes. times(Code code0, Code code1)Returns a Code that evaluates "*".Method parameters in net.hydromatic.morel.eval with type arguments of type Code Modifier and Type Method Description static CodeCodes. from(java.util.Map<Ast.Id,Code> sources, Code filterCode, Code yieldCode)static CodeCodes. fromGroup(java.util.Map<Ast.Id,Code> sources, Code filterCode, java.util.List<Code> groupCodes, java.util.List<Applicable> aggregateCodes, java.util.List<java.lang.String> labels)static CodeCodes. fromGroup(java.util.Map<Ast.Id,Code> sources, Code filterCode, java.util.List<Code> groupCodes, java.util.List<Applicable> aggregateCodes, java.util.List<java.lang.String> labels)static CodeCodes. let(java.util.List<Code> fnCodes, Code argCode)static CodeCodes. list(java.lang.Iterable<? extends Code> codes)static CodeCodes. tuple(java.lang.Iterable<? extends Code> codes)Constructor parameters in net.hydromatic.morel.eval with type arguments of type Code Constructor Description Closure(EvalEnv evalEnv, com.google.common.collect.ImmutableList<Pair<Ast.Pat,Code>> patCodes)Not a public API.TupleCode(com.google.common.collect.ImmutableList<Code> codes)
-