|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusBlockParser.Abstract
org.biojavax.bio.phylo.io.nexus.TreesBlockParser
public class TreesBlockParser
Parses Nexus taxa blocks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockParser |
|---|
NexusBlockParser.Abstract |
| Field Summary |
|---|
| Fields inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockParser |
|---|
UNKNOWN_BLOCK |
| Constructor Summary | |
|---|---|
TreesBlockParser(TreesBlockListener blockListener)
Delegates to NexusBlockParser.Abstract. |
|
| Method Summary | |
|---|---|
void |
beginComment()
Opening a comment tag. |
void |
commentText(String comment)
Receiving free text inside a comment tag. |
void |
endComment()
Closing a comment tag. |
void |
endTokenGroup()
Closing a line (semi-colon encountered). |
void |
parseToken(String token)
Notifies the parser of the next token. |
void |
resetStatus()
This function is called when the parser is reset before starting a new block. |
| Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusBlockParser.Abstract |
|---|
endBlock, getBlockListener, getBlockName, startBlock, wantsBracketsAndBraces |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreesBlockParser(TreesBlockListener blockListener)
blockListener - the listener to send parse events to.| Method Detail |
|---|
public void beginComment()
NexusBlockParser
beginComment in interface NexusBlockParserbeginComment in class NexusBlockParser.Abstract
public void commentText(String comment)
throws ParseException
NexusBlockParser
commentText in interface NexusBlockParsercommentText in class NexusBlockParser.Abstractcomment - the text of the comment.
ParseExceptionpublic void endComment()
NexusBlockParser
endComment in interface NexusBlockParserendComment in class NexusBlockParser.Abstractpublic void resetStatus()
NexusBlockParser.Abstract
resetStatus in class NexusBlockParser.Abstract
public void parseToken(String token)
throws ParseException
NexusBlockParser
parseToken in interface NexusBlockParserparseToken in class NexusBlockParser.Abstracttoken - the token to parse.
ParseException - if the token is unparseable.public void endTokenGroup()
NexusBlockParser
endTokenGroup in interface NexusBlockParserendTokenGroup in class NexusBlockParser.Abstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||