public interface BioMatcher
These will almost always be produced by a factory method on a BioPattern object.
Modifier and Type | Method and Description |
---|---|
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.
|
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()
IllegalStateException
- if there is no current matchint end()
IllegalStateException
- if there is no current matchSymbolList group()
IllegalStateException
- if there is no current matchCopyright © 2014 BioJava. All rights reserved.