Class GenericPatchApplier
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.diff.apply.GenericPatchApplier
-
public class GenericPatchApplier extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericPatchApplier.AppliedPatch
static class
GenericPatchApplier.ChangeType
static class
GenericPatchApplier.LongTryMismatchSolver
static class
GenericPatchApplier.MyAppliedData
static class
GenericPatchApplier.SplitHunk
-
Constructor Summary
Constructors Constructor Description GenericPatchApplier(CharSequence text, List<PatchHunk> hunks)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericPatchApplier.AppliedPatch
apply(File file, List<PatchHunk> hunks)
boolean
execute()
String
getAfter()
List<AppliedTextPatch.AppliedSplitPatchHunk>
getAppliedInfo()
ApplyPatchStatus
getStatus()
TreeMap<TextRange,GenericPatchApplier.MyAppliedData>
getTransformations()
void
putCutIntoTransformations(TextRange range, GenericPatchApplier.MyAppliedData value)
void
putCutIntoTransformations(TextRange range, GenericPatchApplier.SplitHunk splitHunk, GenericPatchApplier.MyAppliedData value, IntPair contextOffsetInPatchSteps)
void
trySolveSomehow()
int
weightContextMatch(int maxWalk, int maxPartsToCheck)
-
-
-
Constructor Detail
-
GenericPatchApplier
public GenericPatchApplier(CharSequence text, List<PatchHunk> hunks)
-
-
Method Detail
-
apply
@Nullable public static GenericPatchApplier.AppliedPatch apply(@Nullable File file, List<PatchHunk> hunks) throws IOException
- Throws:
IOException
-
getStatus
public ApplyPatchStatus getStatus()
-
weightContextMatch
public int weightContextMatch(int maxWalk, int maxPartsToCheck)
-
execute
public boolean execute()
-
trySolveSomehow
public void trySolveSomehow()
-
getAppliedInfo
@NotNull public List<AppliedTextPatch.AppliedSplitPatchHunk> getAppliedInfo()
-
putCutIntoTransformations
public void putCutIntoTransformations(TextRange range, GenericPatchApplier.MyAppliedData value)
-
putCutIntoTransformations
public void putCutIntoTransformations(TextRange range, @Nullable GenericPatchApplier.SplitHunk splitHunk, GenericPatchApplier.MyAppliedData value, @NotNull IntPair contextOffsetInPatchSteps)
-
getAfter
public String getAfter()
-
getTransformations
public TreeMap<TextRange,GenericPatchApplier.MyAppliedData> getTransformations()
-
-