public class TreesBlockParser extends NexusBlockParser.Abstract
NexusBlockParser.AbstractUNKNOWN_BLOCK| Constructor and Description |
|---|
TreesBlockParser(TreesBlockListener blockListener)
Delegates to NexusBlockParser.Abstract.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
endBlock, getBlockListener, getBlockName, startBlock, wantsBracketsAndBracespublic TreesBlockParser(TreesBlockListener blockListener)
blockListener - the listener to send parse events to.public void beginComment()
NexusBlockParserbeginComment in interface NexusBlockParserbeginComment in class NexusBlockParser.Abstractpublic void commentText(String comment) throws ParseException
NexusBlockParsercommentText in interface NexusBlockParsercommentText in class NexusBlockParser.Abstractcomment - the text of the comment.ParseExceptionpublic void endComment()
NexusBlockParserendComment in interface NexusBlockParserendComment in class NexusBlockParser.Abstractpublic void resetStatus()
NexusBlockParser.AbstractresetStatus in class NexusBlockParser.Abstractpublic void parseToken(String token) throws ParseException
NexusBlockParserparseToken in interface NexusBlockParserparseToken in class NexusBlockParser.Abstracttoken - the token to parse.ParseException - if the token is unparseable.public void endTokenGroup()
NexusBlockParserendTokenGroup in interface NexusBlockParserendTokenGroup in class NexusBlockParser.AbstractCopyright © 2020 BioJava. All rights reserved.