All Packages Class Hierarchy This Package Previous Next Index
Class websphinx.Wildcard
java.lang.Object
|
+----websphinx.Pattern
|
+----websphinx.Regexp
|
+----websphinx.Wildcard
- public class Wildcard
- extends Regexp
Wildcard pattern. Wildcards are similar to sh-style file globbing.
A wildcard pattern is implicitly anchored, meaning that it must match the entire string.
The wildcard operators are:
? matches one arbitrary character
* matches zero or more arbitrary characters
[xyz] matches characters x or y or z
{foo,bar,baz} matches expressions foo or bar or baz
() grouping to extract fields
\ escape one of these special characters
Escape codes (like \n and \t) and Perl5 character classes (like \w and \s) may also be used.
-
Wildcard(String)
-
-
equals(Object)
-
-
escape(String)
-
-
main(String[])
-
-
toRegexp(String)
-
-
toString()
- Return a string representation of the pattern.
Wildcard
public Wildcard(String pattern)
equals
public boolean equals(Object object)
- Overrides:
- equals in class Regexp
toRegexp
public static String toRegexp(String wildcard)
escape
public static String escape(String s)
toString
public String toString()
- Return a string representation of the pattern.
- Overrides:
- toString in class Regexp
main
public static void main(String args[]) throws Exception
All Packages Class Hierarchy This Package Previous Next Index