net.axyana.qizxopen.util
Class StringPattern
java.lang.Object
net.axyana.qizxopen.util.StringPattern
- Direct Known Subclasses:
- GlobPattern, RegexpPattern, SoundsLikePattern
- public class StringPattern
- extends java.lang.Object
Matching of 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 |
StringPattern
public StringPattern(char[] pattern,
int length)
exactMatch
public boolean exactMatch()
fixedPrefix
public java.lang.String fixedPrefix()
- Returns the leading constant part of the pattern. Used to boost matching
and lookup in indexes.
toString
public java.lang.String toString()
getPattern
public char[] getPattern()
matches
public boolean matches(char[] string)
- Redefinable matching method.