Interface VariationDiffVisitor<L extends Label>

All Known Implementing Classes:
CutNonEditedSubtrees
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VariationDiffVisitor<L extends Label>
Visitor for VariationDiffTraversals. A visitor is invoked by the traversal on a node that is currently traversed. The visitor can then perform any computation necessary at the current traversal and then decide how to proceed by again invoking the VariationDiffTraversal.visit(org.variantsync.diffdetective.variation.diff.VariationDiff<L>) methods of the traversal.
Author:
Paul Bittner
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(VariationDiffTraversal<L> traversal, DiffNode<L> subtree)
    Invoked by a traversal when a node is visited.
  • Method Details

    • visit

      void visit(VariationDiffTraversal<L> traversal, DiffNode<L> subtree)
      Invoked by a traversal when a node is visited. The traversal might be continued by invoking respective methods on the given traversal object again. However, any node that was already visited, will not be visited again.
      Parameters:
      traversal - The current traversal. May be instructed on how to continue traversal.
      subtree - The node that is currently visited.
      See Also: