Class EvalEnvs.MapEvalEnv

  • All Implemented Interfaces:
    EvalEnv
    Enclosing class:
    EvalEnvs

    static class EvalEnvs.MapEvalEnv
    extends Object
    implements EvalEnv
    Evaluation environment that reads from a map.
    • Method Detail

      • getOpt

        public Object getOpt​(String name)
        Description copied from interface: EvalEnv
        Returns the binding of name if bound, null if not.
        Specified by:
        getOpt in interface EvalEnv
      • visit

        public void visit​(BiConsumer<String,​Object> consumer)
        Description copied from interface: EvalEnv
        Visits every variable binding in this environment.

        Bindings that are obscured by more recent bindings of the same name are visited, but after the more obscuring bindings.

        Specified by:
        visit in interface EvalEnv