Class GenericMapLattice<K,​V extends Lattice<V>>

    • Constructor Detail

      • GenericMapLattice

        public GenericMapLattice​(V lattice)
        Builds the map.
        Parameters:
        lattice - the underlying lattice of values
      • GenericMapLattice

        public GenericMapLattice​(V lattice,
                                 java.util.Map<K,​V> function)
        Builds the map.
        Parameters:
        lattice - the underlying lattice of values (if function is null or empty, this decides whether the created object is top or bottom)
        function - the function containing the mapping
    • Method Detail

      • top

        public GenericMapLattice<K,​V> top()
        Description copied from interface: Lattice
        Yields the top element of this lattice. The returned element should be unique across different calls to this method, since Lattice.isTop() uses reference equality by default. If the value returned by this method is not a singleton, override Lattice.isTop() accordingly to provide a coherent test.
        Returns:
        the top element
      • bottom

        public GenericMapLattice<K,​V> bottom()
        Description copied from interface: Lattice
        Yields the bottom element of this lattice. The returned element should be unique across different calls to this method, since Lattice.isBottom() uses reference equality by default. If the value returned by this method is not a singleton, override Lattice.isBottom() accordingly to provide a coherent test.
        Returns:
        the bottom element
      • mk

        public GenericMapLattice<K,​V> mk​(V lattice,
                                               java.util.Map<K,​V> function)
        Description copied from class: FunctionalLattice
        Builds a instance of this class from the given lattice instance and the given mapping.
        Specified by:
        mk in class FunctionalLattice<GenericMapLattice<K,​V extends Lattice<V>>,​K,​V extends Lattice<V>>
        Parameters:
        lattice - an instance of lattice to be used during semantic operations to retrieve top and bottom values
        function - the function representing the mapping contained in the new environment; can be null
        Returns:
        a new instance of this class