public abstract class ComparisonPolicy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ComparisonPolicy[] |
COMPARISON_POLICIES |
static ComparisonPolicy |
DEFAULT |
static ComparisonPolicy |
IGNORE_SPACE |
static ComparisonPolicy |
TRIM_SPACE |
Modifier | Constructor and Description |
---|---|
protected |
ComparisonPolicy(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
DiffFragment [] |
buildDiffFragmentsFromLines(DiffString [] lines1,
DiffString [] lines2) |
DiffFragment [] |
buildFragments(DiffString [] strings1,
DiffString [] strings2) |
Word |
createFormatting(DiffString text,
TextRange textRange) |
DiffFragment |
createFragment(DiffString text1,
DiffString text2) |
abstract DiffFragment |
createFragment(Word word1,
Word word2) |
static ComparisonPolicy [] |
getAllInstances() |
protected abstract java.lang.Object [] |
getLineWrappers(DiffString [] lines) |
protected java.lang.Object [] |
getLineWrappers(java.lang.String [] lines) |
java.lang.String |
getName() |
protected abstract java.lang.Object [] |
getWrappers(DiffString [] strings) |
protected java.lang.Object [] |
getWrappers(java.lang.String [] lines) |
boolean |
isEqual(DiffFragment fragment) |
protected java.lang.Object [] |
trimStrings(DiffString [] strings) |
public static final ComparisonPolicy DEFAULT
public static final ComparisonPolicy TRIM_SPACE
public static final ComparisonPolicy IGNORE_SPACE
public static final ComparisonPolicy[] COMPARISON_POLICIES
public java.lang.String getName()
public DiffFragment [] buildFragments(DiffString [] strings1, DiffString [] strings2) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public DiffFragment [] buildDiffFragmentsFromLines(DiffString [] lines1, DiffString [] lines2) throws FilesTooBigForDiffException
FilesTooBigForDiffException
public DiffFragment createFragment(DiffString text1, DiffString text2)
public abstract DiffFragment createFragment(Word word1, Word word2)
protected abstract java.lang.Object [] getWrappers(DiffString [] strings)
protected abstract java.lang.Object [] getLineWrappers(DiffString [] lines)
protected java.lang.Object [] trimStrings(DiffString [] strings)
public boolean isEqual(DiffFragment fragment)
public Word createFormatting(DiffString text, TextRange textRange)
public static ComparisonPolicy [] getAllInstances()
protected java.lang.Object [] getWrappers(java.lang.String [] lines)
protected java.lang.Object [] getLineWrappers(java.lang.String [] lines)