public abstract class ComparisonManager
extends java.lang.Object
Constructor and Description |
---|
ComparisonManager() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<DiffFragment> |
compareChars(java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare two texts by-char
|
abstract java.util.List<MergeLineFragment> |
compareLines(java.lang.CharSequence text1,
java.lang.CharSequence text2,
java.lang.CharSequence text3,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare three texts by-line (LEFT - BASE - RIGHT)
|
abstract java.util.List<LineFragment> |
compareLines(java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare two texts by-line
|
abstract java.util.List<LineFragment> |
compareLinesInner(java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare two texts by-line and then compare changed fragments by-word
|
abstract java.util.List<LineFragment> |
compareLinesInner(java.lang.CharSequence text1,
java.lang.CharSequence text2,
java.util.List<LineFragment> lineFragments,
ComparisonPolicy policy,
ProgressIndicator indicator)
Deprecated.
|
abstract java.util.List<DiffFragment> |
compareWords(java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare two texts by-word
|
static ComparisonManager |
getInstance() |
abstract boolean |
isEquals(java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy)
Check if two texts are equal using ComparisonPolicy
|
abstract java.util.List<MergeLineFragment> |
mergeLines(java.lang.CharSequence text1,
java.lang.CharSequence text2,
java.lang.CharSequence text3,
ComparisonPolicy policy,
ProgressIndicator indicator)
Compare three texts by-line (LEFT - BASE - RIGHT)
Do not actually skip "ignored" changes, but keep them from forming merge conflicts.
|
abstract java.util.List<LineFragment> |
processBlocks(java.util.List<LineFragment> oldFragments,
java.lang.CharSequence text1,
java.lang.CharSequence text2,
ComparisonPolicy policy,
boolean squash,
boolean trim) |
abstract java.util.List<LineFragment> |
squash(java.util.List<LineFragment> oldFragments)
compareLinesInner() comparison can produce adjustment line chunks.
|
public static ComparisonManager getInstance()
public abstract java.util.List<LineFragment> compareLines(java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract java.util.List<LineFragment> compareLinesInner(java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
@Deprecated public abstract java.util.List<LineFragment> compareLinesInner(java.lang.CharSequence text1, java.lang.CharSequence text2, java.util.List<LineFragment> lineFragments, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract java.util.List<MergeLineFragment> compareLines(java.lang.CharSequence text1, java.lang.CharSequence text2, java.lang.CharSequence text3, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract java.util.List<MergeLineFragment> mergeLines(java.lang.CharSequence text1, java.lang.CharSequence text2, java.lang.CharSequence text3, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract java.util.List<DiffFragment> compareWords(java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract java.util.List<DiffFragment> compareChars(java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public abstract boolean isEquals(java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy)
public abstract java.util.List<LineFragment> squash(java.util.List<LineFragment> oldFragments)
public abstract java.util.List<LineFragment> processBlocks(java.util.List<LineFragment> oldFragments, java.lang.CharSequence text1, java.lang.CharSequence text2, ComparisonPolicy policy, boolean squash, boolean trim)
trim
- - if leading/trailing LineFragments with equal contents should be skippedsquash(java.util.List<com.intellij.diff.fragments.LineFragment>)