Class PatchApplier.PatchLine

java.lang.Object
org.machanism.machai.gw.tools.PatchApplier.PatchLine
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 Details

    • operation

      private final char operation
      Patch operation: a space for context, a plus sign for addition, or a minus sign for removal.
    • content

      private final String 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