Class Compiler.LinkCode

  • All Implemented Interfaces:
    Code
    Enclosing class:
    Compiler

    private static class Compiler.LinkCode
    extends java.lang.Object
    implements Code
    A piece of code that is references another piece of code. It is useful when defining recursive functions. The reference is mutable, and is fixed up when the function has been compiled.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Code refCode  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LinkCode()  
    • 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

      • refCode

        private Code refCode
    • Constructor Detail

      • LinkCode

        private LinkCode()
    • Method Detail

      • eval

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