Class Environments.EmptyEnvironment

  • Enclosing class:
    Environments

    private static class Environments.EmptyEnvironment
    extends Environment
    Empty environment.
    • Constructor Detail

      • EmptyEnvironment

        private EmptyEnvironment()
    • Method Detail

      • visit

        void visit​(java.util.function.Consumer<Binding> consumer)
        Description copied from class: Environment
        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 class Environment
      • getOpt

        public Binding getOpt​(java.lang.String name)
        Description copied from class: Environment
        Returns the binding of name if bound, null if not.
        Specified by:
        getOpt in class Environment