public class PatchContext
extends java.lang.Object
implements java.lang.Cloneable
PatchModel may
be applied to a context.PatchEngine.matchModel(oracle.javatools.patch.PatchModel, oracle.javatools.patch.PatchMatchOptions)| Constructor and Description |
|---|
PatchContext() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
getHunkMatchLine(PatchHunk patchHunk)
Gets the corresponding matched patch hunk line from the context.
|
int |
getPrefixSlashNumber()
Gets the number of prefix slashes to strip from each file name.
|
boolean |
isEntryMatched(PatchEntry patchEntry)
Gets whether the patch entry has been matched against the context.
|
void |
setEntryMatched(PatchEntry patchEntry,
boolean matched)
Sets whether the patch entry has been matched against the context.
|
void |
setHunkMatchLine(PatchHunk patchHunk,
int matchLine)
Sets the corresponding matched patch hunk line from the context.
|
void |
setPrefixSlashNumber(int prefixSlashNumber)
Sets the number of prefix slashes to strip from each file name.
|
java.lang.String |
toString() |
public void setPrefixSlashNumber(int prefixSlashNumber)
prefixSlashNumber - the number of prefix slashes to strip.public int getPrefixSlashNumber()
public void setEntryMatched(PatchEntry patchEntry, boolean matched)
patchEntry - the patch entry.matched - true if the entry is matched.public boolean isEntryMatched(PatchEntry patchEntry)
patchEntry - the patch entry.true if the entry is matched.public void setHunkMatchLine(PatchHunk patchHunk, int matchLine)
patchHunk - the patch hunk.matchLine - the matched patch hunk line number, or -1.public int getHunkMatchLine(PatchHunk patchHunk)
patchHunk - the patch hunk.-1.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object