Record Class TextDiffToTikz
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.internal.TextDiffToTikz
public record TextDiffToTikz(boolean collapseMultipleCodeLines, boolean ignoreEmptyLines)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thecollapseMultipleCodeLines
record component.private static final Format
<DiffLinesLabel> Format used for the test export.private final boolean
The field for theignoreEmptyLines
record component.static String[]
-
Constructor Summary
ConstructorsConstructorDescriptionTextDiffToTikz
(boolean collapseMultipleCodeLines, boolean ignoreEmptyLines) Creates an instance of aTextDiffToTikz
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecollapseMultipleCodeLines
record component.final boolean
Indicates whether some other object is "equal to" this one.static String
exportAsTikz
(VariationDiff<DiffLinesLabel> variationDiff, GraphvizExporter.LayoutAlgorithm layout) final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theignoreEmptyLines
record component.static void
static String
substringBefore
(String str, Pattern end) void
textDiff2Tikz
(Path fileToConvert, GraphvizExporter.LayoutAlgorithm layout) static String
tikzNodeLabel
(DiffNode<? extends DiffLinesLabel> node) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
collapseMultipleCodeLines
private final boolean collapseMultipleCodeLinesThe field for thecollapseMultipleCodeLines
record component. -
ignoreEmptyLines
private final boolean ignoreEmptyLinesThe field for theignoreEmptyLines
record component. -
UNICODE_PROP_SYMBOLS
-
format
Format used for the test export.
-
-
Constructor Details
-
TextDiffToTikz
public TextDiffToTikz(boolean collapseMultipleCodeLines, boolean ignoreEmptyLines) Creates an instance of aTextDiffToTikz
record class.- Parameters:
collapseMultipleCodeLines
- the value for thecollapseMultipleCodeLines
record componentignoreEmptyLines
- the value for theignoreEmptyLines
record component
-
-
Method Details
-
main
- Throws:
IOException
DiffParseException
-
textDiff2Tikz
public void textDiff2Tikz(Path fileToConvert, GraphvizExporter.LayoutAlgorithm layout) throws IOException, DiffParseException - Throws:
IOException
DiffParseException
-
exportAsTikz
public static String exportAsTikz(VariationDiff<DiffLinesLabel> variationDiff, GraphvizExporter.LayoutAlgorithm layout) throws IOException - Throws:
IOException
-
tikzNodeLabel
-
substringBefore
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
collapseMultipleCodeLines
public boolean collapseMultipleCodeLines()Returns the value of thecollapseMultipleCodeLines
record component.- Returns:
- the value of the
collapseMultipleCodeLines
record component
-
ignoreEmptyLines
public boolean ignoreEmptyLines()Returns the value of theignoreEmptyLines
record component.- Returns:
- the value of the
ignoreEmptyLines
record component
-