Class DebugMiningDiffNodeFormat
java.lang.Object
org.variantsync.diffdetective.mining.formats.DebugMiningDiffNodeFormat
- All Implemented Interfaces:
MiningNodeFormat
,LinegraphFormat
,DiffNodeLabelFormat<DiffLinesLabel>
- Direct Known Subclasses:
RWCompositePatternNodeFormat
Analogous to
ReleaseMiningDiffNodeFormat
but produces human readable labels instead of using integers.
Artifact nodes are labeled with the name of their matched edit class.
Annotation nodes are labeled with DIFFTYPE_NODETYPE (e.g., an added IF node gets the label ADD_IF).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromEncodedTypes
(String tag) toLabel
(DiffNode<? extends DiffLinesLabel> node) Converts aDiffNode
into a label suitable for exporting.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.serialize.nodeformat.DiffNodeLabelFormat
fromLineGraphLine, toMultilineLabel
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
Methods inherited from interface org.variantsync.diffdetective.mining.formats.MiningNodeFormat
fromLabelAndId
-
Constructor Details
-
DebugMiningDiffNodeFormat
public DebugMiningDiffNodeFormat()
-
-
Method Details
-
toLabel
Description copied from interface:DiffNodeLabelFormat
Converts aDiffNode
into a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
toLabel
in interfaceDiffNodeLabelFormat<DiffLinesLabel>
- Parameters:
node
- TheDiffNode
to be labeled- Returns:
- a label for
node
-
fromEncodedTypes
- Specified by:
fromEncodedTypes
in interfaceMiningNodeFormat
-