Class RelabelRoot<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.transform.RelabelRoot<L>
- All Implemented Interfaces:
Transformer<VariationDiff<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 Object 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.Transformer
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:TransformerApply a transformation to the given Object inplace. The object will be changed.- Specified by:
transformin interfaceTransformer<L extends Label>- Parameters:
variationDiff- The T object to transform.
-