org.netbeans.api.java.source
Class ModificationResult.Difference
java.lang.Object
org.netbeans.api.java.source.ModificationResult.Difference
- Enclosing class:
- ModificationResult
public static class ModificationResult.Difference
- extends Object
getKind
@NonNull
public ModificationResult.Difference.Kind getKind()
getStartPosition
@NonNull
public PositionRef getStartPosition()
getEndPosition
@NonNull
public PositionRef getEndPosition()
getOldText
@NonNull
public String getOldText()
getNewText
@NonNull
public String getNewText()
isExcluded
public boolean isExcluded()
exclude
public void exclude(boolean b)
isCommitToGuards
public boolean isCommitToGuards()
- Gets flag if it is possible to write to guarded sections.
- Returns:
true
in case the difference may be written even into
guarded sections.- Since:
- 0.33
- See Also:
#guards(boolean)
setCommitToGuards
public void setCommitToGuards(boolean b)
- Sets flag if it is possible to write to guarded sections.
- Parameters:
b
- flag if it is possible to write to guarded sections- Since:
- 0.33
toString
public String toString()
- Overrides:
toString
in class Object
getDescription
public String getDescription()