|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.finalist.util.DiffConflictLine
This class represents a line of text from a source file that conflicted during the diff process.
Field Summary | |
static DiffConflictLine |
EOF
A special case of DiffConflictLine, used to represent the last line in a file. |
Constructor Summary | |
DiffConflictLine(boolean firstFile,
int number,
java.lang.String line)
Constructs a DiffConflictLine. |
Method Summary | |
java.lang.String |
getLine()
|
int |
getLineNumber()
|
boolean |
isEof()
|
boolean |
isFirstFile()
|
boolean |
lineEquals(DiffConflictLine line2)
Checks if the given line has the same text as this one (ignoring whitespace). |
boolean |
precedes(DiffConflictLine next)
Checks if a given conflict line precedes this one. |
java.lang.String |
toString()
By default this renders a HTML result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final DiffConflictLine EOF
Constructor Detail |
public DiffConflictLine(boolean firstFile, int number, java.lang.String line)
firstFile
- true
if this line comes from the 'first' file (a diff involves 2 files).number
- the line number within the original file.line
- the text of the line.Method Detail |
public boolean lineEquals(DiffConflictLine line2)
line2
- the other line.
true
if equal.public java.lang.String getLine()
public boolean isEof()
public int getLineNumber()
public boolean isFirstFile()
public java.lang.String toString()
public boolean precedes(DiffConflictLine next)
next
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |