|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.symbol.seq.AbstractSequencePositioner<T>
org.expasy.jpl.commons.collection.symbol.seq.MotifMatcher<T>
public class MotifMatcher<T>
This class allows to search a regular expression pattern all over a symbol sequence and store positions in its inner Iterator.
| Nested Class Summary | |
|---|---|
class |
MotifMatcher.Iterator
Inner iterator over pattern matching sequence positions. |
| Nested classes/interfaces inherited from interface org.expasy.jpl.commons.collection.ExtraIterable |
|---|
ExtraIterable.AbstractExtraIterator<T> |
| Field Summary | |
|---|---|
protected Pattern |
aminoAcidMotifPattern
Motif searched on SymbolSequenceImpl object |
protected String |
symbolSequence
String representation of SymbolSequenceImpl |
| Fields inherited from class org.expasy.jpl.commons.collection.symbol.seq.AbstractSequencePositioner |
|---|
numberOfPositions, sequence |
| Constructor Summary | |
|---|---|
protected |
MotifMatcher(String strPattern)
Create an instance for a given pattern. |
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
equal instances have equal patterns. |
|
Pattern |
getPattern()
|
|
int |
hashCode()
|
|
MotifMatcher.Iterator |
iterator()
Returns a JPL iterator over a set of elements of type T. |
|
static
|
newInstance(String pattern)
|
|
void |
setSequence(SymbolSequence<T> sequence)
Override setSequence() to convert byte sequence representation to String in order to use Java Regular Expression. |
|
| Methods inherited from class org.expasy.jpl.commons.collection.symbol.seq.AbstractSequencePositioner |
|---|
getNumberOfSites, iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Pattern aminoAcidMotifPattern
protected String symbolSequence
| Constructor Detail |
|---|
protected MotifMatcher(String strPattern)
strPattern - the motif to search.
RuntimeException - if regexp has a compilation error.| Method Detail |
|---|
public static <T> MotifMatcher<T> newInstance(String pattern)
public void setSequence(SymbolSequence<T> sequence)
setSequence in interface SequenceIterable<T>setSequence in class AbstractSequencePositioner<T>sequence - the sequence where motif search will be done.public final Pattern getPattern()
public MotifMatcher.Iterator iterator()
ExtraIterable
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||