Class SvnPatch
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.patch.SvnPatch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface
private static enum
private static enum
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SvnDiffHunk>
(package private) Map<String,
SVNMergeRangeList> private File
private File
private SvnDiffCallback.OperationKind
private SVNPatchFileStream
private File
private Map<String,
SvnPropertiesPatch> private boolean
private Map
private static final SvnPatch.Transition[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPropertyHunk
(String propName, SvnDiffHunk hunk, SvnDiffCallback.OperationKind operation) getHunks()
private static File
boolean
private boolean
parseHunkHeader
(String header, SvnDiffHunk hunk, String atat) private void
parseHunks
(SVNPatchFileStream patchFileStream, boolean ignoreWhitespace) private boolean
parseMergeInfo
(String line, SvnDiffHunk hunk) parseNextHunk
(boolean[] isProperty, String[] propName, SvnDiffCallback.OperationKind[] propOperation, SVNPatchFileStream patchStream, boolean ignoreWhitespace) static SvnPatch
parseNextPatch
(SvnPatchFile patchFile, boolean reverse, boolean ignoreWhitespace) private boolean
parseOffset
(int[] offset, String range) private String
parsePropName
(String header, String indicator) private boolean
parseRange
(int[] start, int[] length, StringBuilder range) void
setMergeInfo
(Map<String, SVNMergeRangeList> mergeInfo) void
setNewFileName
(File newFileName) void
setOldFileName
(File oldFileName) void
setOperation
(SvnDiffCallback.OperationKind operation) void
setReverse
(boolean reverse) void
setReverseMergeInfo
(Map reverseMergeInfo)
-
Field Details
-
TRANSITIONS
-
hunks
-
propPatches
-
operation
-
reverse
private boolean reverse -
mergeInfo
Map<String,SVNMergeRangeList> mergeInfo -
reverseMergeInfo
-
oldFileName
-
newFileName
-
path
-
patchFileStream
-
-
Constructor Details
-
SvnPatch
public SvnPatch()
-
-
Method Details
-
parseNextPatch
public static SvnPatch parseNextPatch(SvnPatchFile patchFile, boolean reverse, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOException
SVNException
-
parseHunks
private void parseHunks(SVNPatchFileStream patchFileStream, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOException
SVNException
-
parseNextHunk
public SvnDiffHunk parseNextHunk(boolean[] isProperty, String[] propName, SvnDiffCallback.OperationKind[] propOperation, SVNPatchFileStream patchStream, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOException
SVNException
-
parseMergeInfo
- Throws:
SVNException
-
parsePropName
- Throws:
SVNException
-
parseHunkHeader
-
parseRange
-
parseOffset
-
addPropertyHunk
private void addPropertyHunk(String propName, SvnDiffHunk hunk, SvnDiffCallback.OperationKind operation) -
getOldFileName
-
getNewFileName
-
getHunks
-
getPropPatches
-
getOperation
-
isReverse
public boolean isReverse() -
getMergeInfo
-
getReverseMergeInfo
-
setMergeInfo
-
setReverseMergeInfo
-
setReverse
public void setReverse(boolean reverse) -
setOldFileName
-
setNewFileName
-
setOperation
-
grabFileName
-