Package org.biojava.utils.regex
Class Pattern
java.lang.Object
org.biojava.utils.regex.Pattern
A class analogous to java.util.regex.Pattern but for SymbolLists.
- Since:
- 1.4
- Author:
- David Huen
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
return the String label associated with this pattern.matcher
(SymbolList sl) Creates a matcher that will match the given input against this pattern.returns the Pattern to be matched as a String.returns the actual String used to construct the regex with all ambiguities expanded.
-
Method Details
-
getName
return the String label associated with this pattern. -
matcher
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
returns the Pattern to be matched as a 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
-