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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRelabelRoot(L newLabel) Creates a new transformation that will set the root's label of a VariationDiff to the given text. -
Method Summary
Modifier and TypeMethodDescriptionvoidtransform(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, waitMethods 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:VariationDiffTransformerApply a transformation to the given VariationDiff inplace. The given tree will be changed.- Specified by:
transformin interfaceVariationDiffTransformer<L extends Label>- Parameters:
variationDiff- The VariationDiff to transform.
-