|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.regexp.RegexpUtils
public final class RegexpUtils
Regexp related utility methods that do not fall in any other class of the package.
| Constructor Summary | |
|---|---|
RegexpUtils()
|
|
| Method Summary | |
|---|---|
static Perl5Regexp |
getRegexp(java.lang.String re)
Get the regexp string according to the given re String. |
static Perl5Regexp |
getValidRegexp(java.lang.String re)
Get the regexp string according to the given re String. |
static java.lang.Integer |
tryGetInteger(Perl5Regexp regexp,
java.lang.String str)
Try to get an integer from the given regexp and input String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexpUtils()
| Method Detail |
|---|
public static Perl5Regexp getValidRegexp(java.lang.String re)
This version throws an unchecked exception if an error occurs.
re - A valid regular expression String instance.
java.lang.IllegalArgumentException - Thrown if the regular expression argument
String is not a valid regular expression string.
public static Perl5Regexp getRegexp(java.lang.String re)
throws SyntaxException
This version throws a checked exception if an error occurs.
re - A valid regular expression String instance.
SyntaxException - Thrown if the regular expression argument
String is not a valid regular expression string.
public static final java.lang.Integer tryGetInteger(Perl5Regexp regexp,
java.lang.String str)
regexp - A valid Perl5Regexp which contains an integer first
match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||