Package org.machanism.machai.gw.tools
Class PatchApplier.Hunk
java.lang.Object
org.machanism.machai.gw.tools.PatchApplier.Hunk
- Enclosing class:
PatchApplier
Represents a patch hunk and its preferred zero-based starting position.
The start position is a preference derived from the hunk header; the applier can search nearby for the original context when necessary.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intPreferred zero-based location of the original hunk content.Raw, prefix-preserving patch lines that comprise the hunk. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
expectedStart
private final int expectedStartPreferred zero-based location of the original hunk content. -
lines
Raw, prefix-preserving patch lines that comprise the hunk.
-
-
Constructor Details
-
Hunk
Creates a patch hunk.- Parameters:
expectedStart- preferred zero-based start positionlines- raw hunk lines
-