|
IBM Rational Functional Tester Version 8.2.1 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.util.regex.JavaRegExp
public class JavaRegExp
JavaRegular Expression
Constructor Summary | |
---|---|
JavaRegExp(java.lang.String pattern)
|
|
JavaRegExp(java.lang.String pattern,
boolean supportMatches)
|
|
JavaRegExp(java.lang.String pattern,
int matchFlags)
|
Method Summary | |
---|---|
java.lang.String |
getMatch()
Returns the part of the string that matched the pattern. |
java.lang.String |
getMatch(int index)
Returns the substring that matched one of the parenthesized subexpressions of the regular expression. |
int |
getMatchCount()
Returns the number of parenthesized subexpressions in the regular expression. |
int |
getMatchFlags()
Return the match flags |
boolean |
matches(java.lang.String stringToCompare)
Determines whether the regular expression pattern matches the provided string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaRegExp(java.lang.String pattern)
public JavaRegExp(java.lang.String pattern, int matchFlags)
public JavaRegExp(java.lang.String pattern, boolean supportMatches)
Method Detail |
---|
public java.lang.String getMatch()
IRegEx
getMatch(0)
.
getMatch
in interface IRegEx
public java.lang.String getMatch(int index)
IRegEx
index
indicates which substring should be returned. An index of
0 returns the entire matched string, an index of 1 returns the matched substring for the first
parenthesized subexpression of the regular expression, etc.
getMatch
in interface IRegEx
public int getMatchCount()
IRegEx
getMatchCount
in interface IRegEx
public boolean matches(java.lang.String stringToCompare)
IRegEx
matches
in interface IRegEx
public int getMatchFlags()
getMatchFlags
in interface IRegEx
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |