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 classGenericPatchApplier.AppliedPatchstatic classGenericPatchApplier.ChangeTypestatic classGenericPatchApplier.LongTryMismatchSolverstatic classGenericPatchApplier.MyAppliedDatastatic classGenericPatchApplier.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.AppliedPatchapply(File file, List<PatchHunk> hunks)booleanexecute()StringgetAfter()List<AppliedTextPatch.AppliedSplitPatchHunk>getAppliedInfo()ApplyPatchStatusgetStatus()TreeMap<TextRange,GenericPatchApplier.MyAppliedData>getTransformations()voidputCutIntoTransformations(TextRange range, GenericPatchApplier.MyAppliedData value)voidputCutIntoTransformations(TextRange range, GenericPatchApplier.SplitHunk splitHunk, GenericPatchApplier.MyAppliedData value, IntPair contextOffsetInPatchSteps)voidtrySolveSomehow()intweightContextMatch(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()
-
-