net.xfra.qizxopen.util
Class StringGlob
java.lang.Object
|
+--net.xfra.qizxopen.util.StringMatcher
|
+--net.xfra.qizxopen.util.StringGlob
- public class StringGlob
- extends StringMatcher
Unix-style globing
Constructor Summary |
StringGlob(char[] string,
int length)
|
Method Summary |
static boolean |
glob(char[] string,
int ps,
char[] pattern,
int pp)
|
static void |
main(java.lang.String[] args)
|
boolean |
matches(char[] string)
Redefinable matching method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringGlob
public StringGlob(char[] string,
int length)
matches
public boolean matches(char[] string)
- Description copied from class:
StringMatcher
- Redefinable matching method.
- Overrides:
matches
in class StringMatcher
toString
public java.lang.String toString()
- Overrides:
toString
in class StringMatcher
glob
public static boolean glob(char[] string,
int ps,
char[] pattern,
int pp)
main
public static void main(java.lang.String[] args)