final class DifferenceParse extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
d
The next character to be read in the parse of diffText.
|
(package private) ShadowedDiff |
diff
The current difference being marked up.
|
(package private) String |
diffText
The diff text, de-referenced as a convenience.
|
(package private) static Comparator<JavaScriptObject> |
DOC_N_COMPARATOR
A comparator for text nodes in docN, based on the extended property "offset".
|
(package private) StringBuilder |
docC
The text of the document in which to search for difference segments.
|
(package private) ArrayList<Text> |
docN
Text nodes in document order.
|
(package private) LinkedList<String> |
mismatchedSegLocs
A list of segments not found in the wikitext, each in the form of a URL to the
segment view in the difference bridge.
|
Constructor and Description |
---|
DifferenceParse() |
Modifier and Type | Method and Description |
---|---|
(package private) String |
positionMessage()
Returns a message specifying the difference and current parser position
d.
|
(package private) void |
setDiff(ShadowedDiff _diff)
Sets the current difference being marked up.
|
(package private) String |
subline(int t)
Returns the substring of diffText that starts at index t (inclusive) and extends
to the next newline (exclusive) or, failing that, to the last character of the
diffText (inclusive).
|
int d
ShadowedDiff diff
final StringBuilder docC
final ArrayList<Text> docN
static final Comparator<JavaScriptObject> DOC_N_COMPARATOR
final LinkedList<String> mismatchedSegLocs
DifferenceParse()
void setDiff(ShadowedDiff _diff)
String positionMessage()