public static class ModificationResult.Difference extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ModificationResult.Difference.Kind |
Modifier and Type | Method and Description |
---|---|
void |
exclude(boolean b) |
String |
getDescription() |
Position |
getEndPosition() |
ModificationResult.Difference.Kind |
getKind() |
String |
getNewText() |
String |
getOldText() |
Position |
getStartPosition() |
boolean |
isCommitToGuards()
Gets flag if it is possible to write to guarded sections.
|
boolean |
isExcluded() |
Document |
openDocument()
Opens a Document where the Difference is to be applied.
|
void |
setCommitToGuards(boolean b)
Sets flag if it is possible to write to guarded sections.
|
String |
toString() |
@NonNull public ModificationResult.Difference.Kind getKind()
public boolean isExcluded()
public void exclude(boolean b)
public boolean isCommitToGuards()
true
in case the difference may be written even into
guarded sections.ModificationResult.Difference.setCommitToGuards(boolean)
public void setCommitToGuards(boolean b)
b
- flag if it is possible to write to guarded sectionspublic String getDescription()
@CheckForNull public Document openDocument() throws IOException
null
IOException
- when document open fails