public class DuplicatesFinder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DuplicatesFinder.MatchType |
static class |
DuplicatesFinder.Parameter |
Modifier and Type | Field and Description |
---|---|
static Key<DuplicatesFinder.Parameter> |
PARAMETER |
Constructor and Description |
---|
DuplicatesFinder(PsiElement[] pattern,
InputVariables psiParameters,
java.util.List<? extends PsiVariable> psiVariables) |
DuplicatesFinder(PsiElement [] pattern,
InputVariables parameters,
ReturnValue returnValue,
java.util.List<? extends PsiVariable> outputParameters) |
DuplicatesFinder(PsiElement [] pattern,
InputVariables parameters,
ReturnValue returnValue,
java.util.List<? extends PsiVariable> outputParameters,
DuplicatesFinder.MatchType matchType,
java.util.Set<? extends PsiVariable> effectivelyLocal,
java.util.Set<? extends TextRange> textRanges) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Match> |
findDuplicates(PsiElement scope) |
static PsiElement [] |
getDeeplyFilteredElements(PsiElement [] children) |
static PsiElement [] |
getFilteredChildren(PsiElement element) |
InputVariables |
getParameters() |
PsiElement [] |
getPattern() |
ReturnValue |
getReturnValue() |
Match |
isDuplicate(PsiElement element,
boolean ignoreParameterTypesAndPostVariableUsages) |
protected boolean |
isSelf(PsiElement candidate) |
boolean |
matchLeaf(PsiElement pattern,
PsiElement candidate,
Match match) |
public static final Key<DuplicatesFinder.Parameter> PARAMETER
public DuplicatesFinder(PsiElement [] pattern, InputVariables parameters, ReturnValue returnValue, java.util.List<? extends PsiVariable> outputParameters, DuplicatesFinder.MatchType matchType, java.util.Set<? extends PsiVariable> effectivelyLocal, java.util.Set<? extends TextRange> textRanges)
public DuplicatesFinder(PsiElement [] pattern, InputVariables parameters, ReturnValue returnValue, java.util.List<? extends PsiVariable> outputParameters)
public DuplicatesFinder(PsiElement[] pattern, InputVariables psiParameters, java.util.List<? extends PsiVariable> psiVariables)
public InputVariables getParameters()
public PsiElement [] getPattern()
public ReturnValue getReturnValue()
public java.util.List<Match> findDuplicates(PsiElement scope)
public Match isDuplicate(PsiElement element, boolean ignoreParameterTypesAndPostVariableUsages)
protected boolean isSelf(PsiElement candidate)
public boolean matchLeaf(PsiElement pattern, PsiElement candidate, Match match)
public static PsiElement [] getFilteredChildren(PsiElement element)
public static PsiElement [] getDeeplyFilteredElements(PsiElement [] children)