public class RegionDiffer extends DifferBase<java.lang.String>
| Constructor and Description |
|---|
RegionDiffer(java.lang.String regionDescription)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<TextChunk> |
getChunks(java.lang.String elementText,
boolean isLeft)
This method return only three chunks.
|
protected java.lang.String |
getDiffName()
Returns the name for this diff.
|
protected java.lang.String |
getElementText(java.lang.String element)
Get the text of the element.
|
performDiff, postProcessDiffDescriptionpublic RegionDiffer(java.lang.String regionDescription) throws java.lang.IllegalArgumentException
regionDescription - description of the regions as a string, formatted as
"leftStart-leftEnd:rightStart-rightEnd", where all are
one-based inclusive line numbers.java.lang.IllegalArgumentException - if the regionDescription does not follow the required format.protected java.lang.String getElementText(java.lang.String element)
getElementText in class DifferBase<java.lang.String>protected java.lang.String getDiffName()
getDiffName in class DifferBase<java.lang.String>protected java.util.List<TextChunk> getChunks(java.lang.String elementText, boolean isLeft)
getChunks in class DifferBase<java.lang.String>isLeft - indicates whether this method is called for the left or right
element. The implementer then may behave differently for both
elements (possibly depending on additional information).