Package org.biojava.utils.regex
Class Pattern
- java.lang.Object
 - 
- org.biojava.utils.regex.Pattern
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FiniteAlphabetgetAlphabet()StringgetName()return the String label associated with this pattern.Matchermatcher(SymbolList sl)Creates a matcher that will match the given input against this pattern.StringpatternAsString()returns the Pattern to be matched as a String.StringpatternExpanded()returns the actual String used to construct the regex with all ambiguities expanded. 
 - 
 
- 
- 
Method Detail
- 
matcher
public Matcher matcher(SymbolList sl)
Creates a matcher that will match the given input against this pattern.- Parameters:
 sl- SymbolList against which match is to be made.- Returns:
 - A new matcher for this pattern.
 
 
- 
patternAsString
public String patternAsString()
returns the Pattern to be matched as a String. 
- 
patternExpanded
public String patternExpanded()
returns the actual String used to construct the regex with all ambiguities expanded. //FIXME: do something about unicode strings and conversion back to something sensible. 
- 
getAlphabet
public FiniteAlphabet getAlphabet()
 
 - 
 
 -