- Enclosing class:
PatchApplier
private static final class PatchApplier.PatchLine
extends Object
Represents a parsed context, addition, or removal line in a patch hunk.
The operation identifies how the line affects the target file, while
content contains the corresponding text without the diff prefix.
-
Field Summary
Fields
Text of the line without its patch-operation prefix.
private final char
Patch operation: a space for context, a plus sign for addition, or a
minus sign for removal.
-
Constructor Summary
Constructors
private
Creates a parsed patch line.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
operation
private final char operation
Patch operation: a space for context, a plus sign for addition, or a
minus sign for removal.
-
content
Text of the line without its patch-operation prefix.
-
Constructor Details
-
PatchLine
private PatchLine(char operation,
String content)
Creates a parsed patch line.
- Parameters:
operation - patch operation
content - unprefixed line content