Class DiffNode

    • Constructor Detail

      • DiffNode

        public DiffNode​(Diff diff)
        Constructor.
        Parameters:
        diff - The diff represented by this TreeNode
    • Method Detail

      • addRefinedDiffNode

        public boolean addRefinedDiffNode​(DiffNode diffNode)
        Add the given DiffNode to the children of this DiffNode. This is intended to be used only for refined diffs.
        Parameters:
        diffNode - The DiffNode to add
        Returns:
        true if the DiffNode has been added
      • removeRefinedDiffNode

        public boolean removeRefinedDiffNode​(DiffNode diffNode)
        Remove the given DiffNode of the children of this DiffNode. This is intended to be used only for refined diffs.
        Parameters:
        diffNode - The DiffNode to remove
        Returns:
        true if the DiffNode has been removed
      • getDiff

        public Diff getDiff()
        Getter for the diff represented by this TreeNode.
        Returns:
        the diff
      • getRefinedDiffs

        public Iterable<DiffNode> getRefinedDiffs()
        Get all the refined DiffNode that are part of this DiffNode.
        Returns:
        an iterable of all refined DiffNode of this diff