Package org.omegat.core.matching
Class DiffDriver.Render
- java.lang.Object
-
- org.omegat.core.matching.DiffDriver.Render
-
- Enclosing class:
- DiffDriver
public static class DiffDriver.Render extends java.lang.Object
Represents the output of a string-string diff comparison. Contains the raw text for display, as well as formatting information.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DiffDriver.TextRun>
formatting
java.lang.String
text
-
Constructor Summary
Constructors Constructor Description Render()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRun(int start, int length, DiffDriver.Type type)
java.lang.String
getRunText(DiffDriver.TextRun run)
Get the text corresponding to the run
-
-
-
Field Detail
-
formatting
public java.util.List<DiffDriver.TextRun> formatting
-
text
public java.lang.String text
-
-
Method Detail
-
addRun
public void addRun(int start, int length, DiffDriver.Type type)
-
getRunText
public java.lang.String getRunText(DiffDriver.TextRun run)
Get the text corresponding to the run- Parameters:
run
-- Returns:
-
-