Class MapTyping

  • All Implemented Interfaces:
    ITyping

    public class MapTyping
    extends Object
    implements ITyping
    Author:
    Ben Bellamy
    • Method Detail

      • get

        public Type get​(Local v)
        Description copied from interface: ITyping
        Returns the type (or null)
        Specified by:
        get in interface ITyping
        Parameters:
        v - the local variable
        Returns:
        the type (or null)
      • set

        public void set​(Local v,
                        Type t)
        Description copied from interface: ITyping
        Sets the type of the local variable
        Specified by:
        set in interface ITyping
        Parameters:
        v - the local variable
        t - the type
      • getAllLocals

        public Iterable<Local> getAllLocals()
        Description copied from interface: ITyping
        Returns an iterable of all typed locals
        Specified by:
        getAllLocals in interface ITyping
        Returns:
        an iterable of all typed locals
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: ITyping
        Returns true if no locals are typed
        Specified by:
        isEmpty in interface ITyping
        Returns:
        true if no locals are typed
      • clear

        public void clear()
        Description copied from interface: ITyping
        Clears all locals and typings.
        Specified by:
        clear in interface ITyping
      • createCloneTyping

        public ITyping createCloneTyping()
        Description copied from interface: ITyping
        Creates a new typing class as a copy of this topic.
        Specified by:
        createCloneTyping in interface ITyping
        Returns:
        the new ITyping