Qizx/Open v0.3

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 net.xfra.qizxopen.util.StringMatcher
exactMatch, getPattern
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringGlob

public StringGlob(char[] string,
                  int length)
Method Detail

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)

 Copyright Xavier FRANC 2003-2004