Class Codes.TupleCode

  • All Implemented Interfaces:
    Code
    Enclosing class:
    Codes

    public static class Codes.TupleCode
    extends java.lang.Object
    implements Code
    A code that evaluates expressions and creates a tuple with the results.

    An inner class so that we can pick apart the results of multiply defined functions: fun f = ... and g = ....

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<Code> codes  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TupleCode​(com.google.common.collect.ImmutableList<Code> codes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object eval​(EvalEnv env)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.hydromatic.morel.eval.Code

        isConstant
    • Field Detail

      • codes

        public final java.util.List<Code> codes
    • Constructor Detail

      • TupleCode

        private TupleCode​(com.google.common.collect.ImmutableList<Code> codes)
    • Method Detail

      • eval

        public java.lang.Object eval​(EvalEnv env)
        Specified by:
        eval in interface Code