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

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

    • MatchNode

      public MatchNode(Match match)
      Constructor.
      Parameters:
      match - The match represented by this TreeNode
  • Method Details

    • addSubMatchNode

      public boolean addSubMatchNode(MatchNode matchNode)
      Add the given MatchNode to the children of this MatchNode.
      Parameters:
      matchNode - The MatchNode to add
      Returns:
      true if the MatchNode has been added
    • addDiffNode

      public boolean addDiffNode(DiffNode diffNode)
      Add the given DiffNode to the children of this MatchNode.
      Parameters:
      diffNode - The DiffNode to add
      Returns:
      true if the DiffNode has been added
    • removeSubMatchNode

      public boolean removeSubMatchNode(MatchNode matchNode)
      Remove the given MatchNode of the children of this MatchNode.
      Parameters:
      matchNode - The MatchNode to remove
      Returns:
      true if the MatchNode has been removed
    • removeDiffNode

      public boolean removeDiffNode(DiffNode diffNode)
      Remove the given DiffNode of the children of this MatchNode.
      Parameters:
      diffNode - The DiffNode to remove
      Returns:
      true if the DiffNode has been removed
    • getMatch

      public Match getMatch()
      Getter for the match represented by this TreeNode.
      Returns:
      the match
    • getSubMatchNodes

      public Iterable<MatchNode> getSubMatchNodes()
      Get all the match trees that are submatches of the match
      Returns:
      an iterable of all submatches
    • getDiffNodes

      public Iterable<DiffNode> getDiffNodes()
      Get all the diffs that are part of the match
      Returns:
      an iterable of all directly contained diffs