|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for things that perform matches.
These will almost always be produced by a factory method on a BioPattern object.
| Method Summary | |
int |
end()
Get the last symbol index that matches the pattern. |
boolean |
find()
Attempt to find the next match. |
SymbolList |
group()
Get the matching region as a SymbolList. |
int |
start()
Get the first symbol index that matches the pattern. |
| Method Detail |
public boolean find()
If the pattern can be found, then this will return true. If it could not, then it will return false. This is convenient within for or while loops.
Each time this is called, the next match will be found. The start() and end() values will increase each time, regardless of wether you called any other methods.
public int start()
IllegalStateException - if there is no current matchpublic int end()
IllegalStateException - if there is no current matchpublic SymbolList group()
IllegalStateException - if there is no current match
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||