public class CombinedHunkHeader extends HunkHeader
Modifier and Type | Class and Description |
---|---|
private static class |
CombinedHunkHeader.CombinedOldImage |
HunkHeader.OldImage
Modifier and Type | Field and Description |
---|---|
private CombinedHunkHeader.CombinedOldImage[] |
old |
endOffset, file, nContext, newLineCount, newStartLine, startOffset
Constructor and Description |
---|
CombinedHunkHeader(CombinedFileHeader fh,
int offset) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
extractFileLines(java.io.OutputStream[] out) |
(package private) void |
extractFileLines(java.lang.StringBuilder sb,
java.lang.String[] text,
int[] offsets) |
CombinedFileHeader |
getFileHeader()
Get header for the file this hunk applies to.
|
HunkHeader.OldImage |
getOldImage()
Get information about the old image mentioned in this hunk.
|
HunkHeader.OldImage |
getOldImage(int nthParent)
Get the OldImage data related to the nth ancestor
|
(package private) int |
parseBody(Patch script,
int end) |
(package private) void |
parseHeader() |
copyLine, getBuffer, getEndOffset, getLinesContext, getNewLineCount, getNewStartLine, getStartOffset, skipLine, toEditList, toString
private CombinedHunkHeader.CombinedOldImage[] old
CombinedHunkHeader(CombinedFileHeader fh, int offset)
public CombinedFileHeader getFileHeader()
getFileHeader
in class HunkHeader
public HunkHeader.OldImage getOldImage()
getOldImage
in class HunkHeader
public HunkHeader.OldImage getOldImage(int nthParent)
nthParent
- the ancestor to get the old image data ofvoid parseHeader()
parseHeader
in class HunkHeader
int parseBody(Patch script, int end)
parseBody
in class HunkHeader
void extractFileLines(java.io.OutputStream[] out) throws java.io.IOException
extractFileLines
in class HunkHeader
java.io.IOException
void extractFileLines(java.lang.StringBuilder sb, java.lang.String[] text, int[] offsets)
extractFileLines
in class HunkHeader