public class CamelHumpMatcher extends PrefixMatcher
ALWAYS_TRUE, myPrefix
Constructor and Description |
---|
CamelHumpMatcher(java.lang.String prefix) |
CamelHumpMatcher(java.lang.String prefix,
boolean caseSensitive) |
CamelHumpMatcher(java.lang.String prefix,
boolean caseSensitive,
boolean typoTolerant) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
applyMiddleMatching(java.lang.String prefix) |
PrefixMatcher |
cloneWithPrefix(java.lang.String prefix) |
static void |
forceStartMatching(Disposable parent)
Deprecated.
In an ideal world, all tests would use the same settings as production, i.e. middle matching.
If you see a usage of this method which can be easily removed (i.e. it's easy to make a test pass without it
by modifying test expectations slightly), please do it
|
boolean |
isStartMatch(LookupElement element) |
boolean |
isStartMatch(java.lang.String name) |
boolean |
isTypoTolerant() |
int |
matchingDegree(java.lang.String string) |
int |
matchingDegree(java.lang.String string,
FList<? extends TextRange> fragments) |
FList<TextRange> |
matchingFragments(java.lang.String string) |
boolean |
prefixMatches(LookupElement element) |
boolean |
prefixMatches(java.lang.String name) |
java.lang.String |
toString() |
getPrefix, sortMatching
public CamelHumpMatcher(java.lang.String prefix)
public CamelHumpMatcher(java.lang.String prefix, boolean caseSensitive)
public CamelHumpMatcher(java.lang.String prefix, boolean caseSensitive, boolean typoTolerant)
public boolean isStartMatch(java.lang.String name)
isStartMatch
in class PrefixMatcher
public boolean isStartMatch(LookupElement element)
isStartMatch
in class PrefixMatcher
public boolean isTypoTolerant()
public boolean prefixMatches(java.lang.String name)
prefixMatches
in class PrefixMatcher
public boolean prefixMatches(LookupElement element)
prefixMatches
in class PrefixMatcher
public PrefixMatcher cloneWithPrefix(java.lang.String prefix)
cloneWithPrefix
in class PrefixMatcher
public static java.lang.String applyMiddleMatching(java.lang.String prefix)
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public static void forceStartMatching(Disposable parent)
public int matchingDegree(java.lang.String string)
matchingDegree
in class PrefixMatcher