|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.BGP4.Util.Parsing
Public utility methods useful for parsing-related tasks.
| Field Summary | |
static java.lang.String |
int_list_regexp
A regular expression for matching a comma-separated list of integers |
static java.lang.String |
int_range_regexp
A regular expression for matching an integer range. |
| Constructor Summary | |
Parsing()
|
|
| Method Summary | |
static boolean |
matchInt(java.lang.String matcher,
int intval)
Determines whether or not an integer is matched by a given list or range expression. |
static boolean |
matchIntList(java.lang.String matcher,
int intval)
Determines whether or not an integer is in a given integer list. |
static boolean |
matchIntRange(java.lang.String matcher,
int intval)
Determines whether or not an integer is in a given integer range. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String int_list_regexp
public static final java.lang.String int_range_regexp
| Constructor Detail |
public Parsing()
| Method Detail |
public static final boolean matchInt(java.lang.String matcher,
int intval)
matcher - A list or range of integers.intval - An integer to test against the matcher.
public static final boolean matchIntList(java.lang.String matcher,
int intval)
matchInt.
matcher - A list of integers.intval - An integer to test against the list.
matchInt(java.lang.String, int)
public static final boolean matchIntRange(java.lang.String matcher,
int intval)
matchInt.
matcher - A range of integers.intval - An integer to test against the range.
matchInt(java.lang.String, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||