org.netbeans.modules.java.source 0.80.1 17

org.netbeans.api.java.source
Class ModificationResult.Difference

java.lang.Object
  extended by org.netbeans.api.java.source.ModificationResult.Difference
Enclosing class:
ModificationResult

public static class ModificationResult.Difference
extends Object


Nested Class Summary
static class ModificationResult.Difference.Kind
           
 
Method Summary
 void exclude(boolean b)
           
 String getDescription()
           
 PositionRef getEndPosition()
           
 ModificationResult.Difference.Kind getKind()
           
 String getNewText()
           
 String getOldText()
           
 PositionRef getStartPosition()
           
 boolean isCommitToGuards()
          Gets flag if it is possible to write to guarded sections.
 boolean isExcluded()
           
 void setCommitToGuards(boolean b)
          Sets flag if it is possible to write to guarded sections.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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()

org.netbeans.modules.java.source 0.80.1 17

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.