|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BioMatcher
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 |
---|
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.
int start()
java.lang.IllegalStateException
- if there is no current matchint end()
java.lang.IllegalStateException
- if there is no current matchSymbolList group()
java.lang.IllegalStateException
- if there is no current match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |