net.xfra.qizxopen.util
Class StringMatcher
java.lang.Object
|
+--net.xfra.qizxopen.util.StringMatcher
- Direct Known Subclasses:
- FuzzyMatcher, StringGlob
- public class StringMatcher
- extends java.lang.Object
Matches a string with a pattern.
This superclass implements the identity comparison.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringMatcher
public StringMatcher(char[] pattern,
int length)
exactMatch
public boolean exactMatch()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getPattern
public char[] getPattern()
matches
public boolean matches(char[] string)
- Redefinable matching method.