Interface MutableScope

  • All Superinterfaces:
    Scope
    All Known Subinterfaces:
    ViewContext

    public interface MutableScope
    extends Scope
    A mutable Scope.
    Author:
    Carl Harris
    • Method Detail

      • put

        void put​(Object obj)
        Puts an object into this scope.
        Parameters:
        obj - the object to put
      • put

        Object put​(String name,
                   Object obj)
        Puts a named object into this scope.
        Parameters:
        name - name to assign
        obj - the object to put
        Returns:
        the object that was replaced by obj in this scope
      • putAll

        void putAll​(Iterable<?> objs)
        Puts a collection of objects into this scope.
        Parameters:
        objs - the objects to put
      • putAll

        void putAll​(Map<String,​?> objs)
        Puts a collection of named objects into this scope.
        Parameters:
        objs - map of named objects to put
      • remove

        boolean remove​(Object obj)
        Removes an object from this scope.
        Parameters:
        obj - the object to remove
        Returns:
        true if an object matching the identity of obj was removed