protected static class FilteringOutlinePopup.StringMatcher extends java.lang.Object implements FilteringOutlinePopup.IMatcher<java.lang.String>
Constructor and Description |
---|
StringMatcher(java.lang.String pattern,
boolean ignoreCase)
Creates a new string matcher based on the given pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String text)
Determines a true or false for the given object.
|
protected java.lang.String |
translatePattern(java.lang.String pattern)
Translates the given pattern into a regular expression.
|
public StringMatcher(java.lang.String pattern, boolean ignoreCase)
pattern
- the pattern string (not null
)ignoreCase
- whether case-insensitive matching is enabledpublic final boolean matches(java.lang.String text)
FilteringOutlinePopup.IMatcher
matches
in interface FilteringOutlinePopup.IMatcher<java.lang.String>
text
- may be null
true
if the specified object matches;
false
otherwiseprotected java.lang.String translatePattern(java.lang.String pattern)
pattern
- the pattern string (not null
)null
)