Class RelabelRoot<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.transform.RelabelRoot<L>
- All Implemented Interfaces:
VariationDiffTransformer<L>
Transformer that relabels the root of a VariationDiff.
- Author:
- Paul Bittner
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRelabelRoot
(L newLabel) Creates a new transformation that will set the root's label of a VariationDiff to the given text. -
Method Summary
Modifier and TypeMethodDescriptionvoid
transform
(VariationDiff<L> variationDiff) Apply a transformation to the given VariationDiff inplace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.variation.diff.transform.VariationDiffTransformer
getDependencies
-
Field Details
-
newLabel
-
-
Constructor Details
-
RelabelRoot
Creates a new transformation that will set the root's label of a VariationDiff to the given text.- Parameters:
newLabel
- New label for the root node.
-
-
Method Details
-
transform
Description copied from interface:VariationDiffTransformer
Apply a transformation to the given VariationDiff inplace. The given tree will be changed.- Specified by:
transform
in interfaceVariationDiffTransformer<L extends Label>
- Parameters:
variationDiff
- The VariationDiff to transform.
-