public class SimpleDuplicatesFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PsiElement |
myReplacement |
Constructor and Description |
---|
SimpleDuplicatesFinder(PsiElement statement1,
PsiElement statement2,
java.util.Collection<java.lang.String> variables,
AbstractVariableData[] variableData) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canReplace(PsiElement replacement,
PsiElement element) |
java.util.List<SimpleMatch> |
findDuplicates(java.util.List<PsiElement> scope,
PsiElement generatedMethod) |
protected SimpleMatch |
isDuplicateFragment(PsiElement candidate) |
void |
setReplacement(PsiElement replacement) |
protected PsiElement myReplacement
public SimpleDuplicatesFinder(PsiElement statement1, PsiElement statement2, java.util.Collection<java.lang.String> variables, AbstractVariableData[] variableData)
public java.util.List<SimpleMatch> findDuplicates(java.util.List<PsiElement> scope, PsiElement generatedMethod)
protected SimpleMatch isDuplicateFragment(PsiElement candidate)
protected boolean canReplace(PsiElement replacement, PsiElement element)
public void setReplacement(PsiElement replacement)