public abstract class WordTokenization extends Unchangeable implements SymbolTokenization, Serializable
SymbolTokenization.TokenTypeAnnotatable.AnnotationForwarderCHARACTER, FIXEDWIDTH, SEPARATED, UNKNOWNANNOTATION| Constructor and Description |
|---|
WordTokenization(Alphabet fab) |
| Modifier and Type | Method and Description |
|---|---|
Alphabet |
getAlphabet()
The alphabet to which this tokenization applies.
|
Annotation |
getAnnotation()
Should return the associated annotation object.
|
SymbolTokenization.TokenType |
getTokenType()
Determine the style of tokenization represented by this object.
|
StreamParser |
parseStream(SeqIOListener siol)
Return an object which can parse an arbitrary character stream into
symbols.
|
protected Symbol[] |
parseString(String s) |
protected List |
splitString(String str) |
String |
tokenizeSymbolList(SymbolList sl)
Return a string representation of a list of symbols.
|
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseToken, tokenizeSymboladdChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic WordTokenization(Alphabet fab)
public Alphabet getAlphabet()
SymbolTokenizationgetAlphabet in interface SymbolTokenizationpublic SymbolTokenization.TokenType getTokenType()
SymbolTokenizationgetTokenType in interface SymbolTokenizationpublic Annotation getAnnotation()
AnnotatablegetAnnotation in interface Annotatablepublic String tokenizeSymbolList(SymbolList sl) throws IllegalSymbolException, IllegalAlphabetException
SymbolTokenizationtokenizeSymbolList in interface SymbolTokenizationsl - A SymbolListIllegalAlphabetException - if alphabets don't matchIllegalSymbolExceptionpublic StreamParser parseStream(SeqIOListener siol)
SymbolTokenizationparseStream in interface SymbolTokenizationsiol - The listener which gets notified of parsed symbols.protected List splitString(String str) throws IllegalSymbolException
IllegalSymbolExceptionprotected Symbol[] parseString(String s) throws IllegalSymbolException
IllegalSymbolExceptionCopyright © 2020 BioJava. All rights reserved.