All Implemented Interfaces:
Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, TreeNode

public class DiffNode extends TreeNodeImpl
This class is wrapper for TreeNode used to represent a diff TreeNode.
Since:
4.3
  • Constructor Details

    • DiffNode

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

    • 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