Top Description Inners Fields Constructors Methods
org.eclipse.jgit.patch

public Class CombinedHunkHeader

extends HunkHeader
Class Inheritance
Static Imports
org.eclipse.jgit.util.RawParseUtils.nextLF, .RawParseUtils.parseBase10

Hunk header for a hunk appearing in a "diff --cc" style patch.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class

Field Summary

Modifier and TypeField and Description
private CombinedHunkHeader.CombinedOldImage[]
Inherited from org.eclipse.jgit.patch.HunkHeader:
endOffsetfilenContextnewLineCountnewStartLinestartOffset

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
extractFileLines(final StringBuilder sb, final String[] text, final int[] offsets)

Overrides org.eclipse.jgit.patch.HunkHeader.extractFileLines.

public CombinedFileHeader
getFileHeader()

Overrides org.eclipse.jgit.patch.HunkHeader.getFileHeader.

Get header for the file this hunk applies to.

public HunkHeader.OldImage
getOldImage()

Overrides org.eclipse.jgit.patch.HunkHeader.getOldImage.

Get information about the old image mentioned in this hunk.

public HunkHeader.OldImage

Returns:

image data of the requested ancestor.
getOldImage
(int
the ancestor to get the old image data of
nthParent
)

Get the OldImage data related to the nth ancestor

pack-priv int
pack-priv void
Inherited from org.eclipse.jgit.patch.HunkHeader:
copyLinegetBuffergetEndOffsetgetLinesContextgetNewLineCountgetNewStartLinegetStartOffsetskipLinetoEditListtoString

Field Detail

oldback to summary
private CombinedHunkHeader.CombinedOldImage[] old

Hides org.eclipse.jgit.patch.HunkHeader.old.

Constructor Detail

CombinedHunkHeaderback to summary
pack-priv CombinedHunkHeader(CombinedFileHeader fh, int offset)

Method Detail

extractFileLinesback to summary
pack-priv void extractFileLines(OutputStream[] out) throws IOException

Overrides org.eclipse.jgit.patch.HunkHeader.extractFileLines.

Annotations
@Override
extractFileLinesback to summary
pack-priv void extractFileLines(final StringBuilder sb, final String[] text, final int[] offsets)

Overrides org.eclipse.jgit.patch.HunkHeader.extractFileLines.

Annotations
@Override
getFileHeaderback to summary
public CombinedFileHeader getFileHeader()

Overrides org.eclipse.jgit.patch.HunkHeader.getFileHeader.

Doc from org.eclipse.jgit.patch.HunkHeader.getFileHeader.

Get header for the file this hunk applies to.

Returns:CombinedFileHeader

header for the file this hunk applies to.

Annotations
@Override
getOldImageback to summary
public HunkHeader.OldImage getOldImage()

Overrides org.eclipse.jgit.patch.HunkHeader.getOldImage.

Doc from org.eclipse.jgit.patch.HunkHeader.getOldImage.

Get information about the old image mentioned in this hunk.

Returns:HunkHeader.OldImage

information about the old image mentioned in this hunk.

Annotations
@Override
getOldImageback to summary
public HunkHeader.OldImage getOldImage(int nthParent)

Get the OldImage data related to the nth ancestor

Parameters
nthParent:int

the ancestor to get the old image data of

Returns:HunkHeader.OldImage

image data of the requested ancestor.

parseBodyback to summary
pack-priv int parseBody(Patch script, int end)

Overrides org.eclipse.jgit.patch.HunkHeader.parseBody.

Annotations
@Override
parseHeaderback to summary
pack-priv void parseHeader()

Overrides org.eclipse.jgit.patch.HunkHeader.parseHeader.

Annotations
@Override
org.eclipse.jgit.patch back to summary

private abstract Class CombinedHunkHeader.CombinedOldImage

extends OldImage
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from org.eclipse.jgit.patch.HunkHeader.OldImage:
lineCountnAddednDeletedstartLine

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from org.eclipse.jgit.patch.HunkHeader.OldImage:
getIdgetLineCountgetLinesAddedgetLinesDeletedgetStartLine

Field Detail

nContextback to summary
pack-priv int nContext

Constructor Detail

CombinedOldImageback to summary
private CombinedOldImage()