|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Patterns are used to test, if a String matches a certain
character pattern at a distinct position. Use match(String, int)
to determine, if this Pattern matches the given
String at the given index.
For example a Pattern matches only numbers will return
new Integer(4, 2) at pattern.match("Nr. 13", 4);.
| Method Summary | |
java.lang.String |
getName()
Returns the name of this Pattern. |
Interval |
match(java.lang.String str,
int index)
Returns the Interval matching this pattern at the given index. |
void |
setName(java.lang.String name)
Sets the name of this Pattern. |
| Method Detail |
public Interval match(java.lang.String str,
int index)
Interval matching this pattern at the given index.
str - The Stringindex - The index that is used to match the position.
Interval matchin this Pattern or
null.public java.lang.String getName()
Pattern.
public void setName(java.lang.String name)
Pattern.
name - The name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||