Class RebuildingContextImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsUpdated​(Node node)
      Checks if the context contains already an updated version of the given node.
      java.util.Map<Node,​Node> getRebuildingMap()
      Returns a map of instruction nodes to instruction nodes, which contains the nodes to be replaced as key and the nodes which shall replace the old nodes as values.
      <T extends Node>
      T
      getUpdated​(T node)
      Returns resolved node of type T or null if is not yet resolved.
      <T extends Node>
      T
      getUpdatedOrSame​(T node)
      Returns updated or same(given) node from context.
      <T extends Node>
      void
      put​(T key, T newNode)
      Holds relation between old node and new node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RebuildingContextImpl

        public RebuildingContextImpl()
        Default constructor
    • Method Detail

      • put

        public <T extends Node> void put​(T key,
                                         T newNode)
        Description copied from interface: RebuildingContext
        Holds relation between old node and new node
        Specified by:
        put in interface RebuildingContext
        Type Parameters:
        T - the type of Node
        Parameters:
        key - as existing node
        newNode - as enhanced node
      • containsUpdated

        public boolean containsUpdated​(Node node)
        Description copied from interface: RebuildingContext
        Checks if the context contains already an updated version of the given node.
        Specified by:
        containsUpdated in interface RebuildingContext
        Parameters:
        node - the instruction node for which it shall be checked if an updated version exists for it
        Returns:
        true if the context contains an updated version, false if not.
      • getUpdatedOrSame

        public <T extends Node> T getUpdatedOrSame​(T node)
        Description copied from interface: RebuildingContext
        Returns updated or same(given) node from context.
        Specified by:
        getUpdatedOrSame in interface RebuildingContext
        Type Parameters:
        T - the type of Node
        Parameters:
        node - to be see if updated.
        Returns:
        node or updated node from context.
      • getRebuildingMap

        public java.util.Map<Node,​Node> getRebuildingMap()
        Description copied from interface: RebuildingContext
        Returns a map of instruction nodes to instruction nodes, which contains the nodes to be replaced as key and the nodes which shall replace the old nodes as values.
        Specified by:
        getRebuildingMap in interface RebuildingContext
        Returns:
        the replacement mapping
      • getUpdated

        public <T extends Node> T getUpdated​(T node)
        Description copied from interface: RebuildingContext
        Returns resolved node of type T or null if is not yet resolved.
        Specified by:
        getUpdated in interface RebuildingContext
        Type Parameters:
        T - the type of Node
        Parameters:
        node - to get the update from
        Returns:
        the updated node