|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.actions.SimpleWildcardTester
public final class SimpleWildcardTester
Implements an algorithm for very simple pattern matching in a string. There is only one feature: "*" may be used at the start or the end of the pattern to represent "one or more characters".
Constructor Summary | |
---|---|
SimpleWildcardTester()
|
Method Summary | |
---|---|
static boolean |
testWildcard(java.lang.String pattern,
java.lang.String str)
Returns whether a string matches a particular pattern. |
static boolean |
testWildcardIgnoreCase(java.lang.String pattern,
java.lang.String str)
Returns whether a string matches a particular pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleWildcardTester()
Method Detail |
---|
public static boolean testWildcard(java.lang.String pattern, java.lang.String str)
pattern
- the input patternstr
- the string to test
true
if a match occurs; false
otherwise.public static boolean testWildcardIgnoreCase(java.lang.String pattern, java.lang.String str)
pattern
- the input patternstr
- the string to test
true
if a match occurs; false
otherwise.
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.