public abstract static class NexusBlockParser.Abstract extends Object implements NexusBlockParser
NexusBlockParser.AbstractUNKNOWN_BLOCK| Constructor and Description | 
|---|
| NexusBlockParser.Abstract(NexusBlockListener blockListener) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | beginComment()Opening a comment tag. | 
| void | commentText(String comment)Receiving free text inside a comment tag. | 
| void | endBlock()Notifies the parser that a block is ending. | 
| void | endComment()Closing a comment tag. | 
| void | endTokenGroup()Closing a line (semi-colon encountered). | 
| NexusBlockListener | getBlockListener()Obtain the listener for this parser. | 
| protected String | getBlockName() | 
| abstract void | parseToken(String token)Notifies the parser of the next token. | 
| protected abstract void | resetStatus()This function is called when the parser is reset before starting a
 new block. | 
| void | startBlock(String blockName)Notifies the parser that a new block is starting. | 
| boolean | wantsBracketsAndBraces()Does the listener want to know about brackets and braces as separate
 tokens? | 
public NexusBlockParser.Abstract(NexusBlockListener blockListener)
public NexusBlockListener getBlockListener()
NexusBlockParsergetBlockListener in interface NexusBlockParserpublic void startBlock(String blockName)
NexusBlockParserstartBlock in interface NexusBlockParserblockName - the name of the block.protected abstract void resetStatus()
protected String getBlockName()
public void endBlock()
NexusBlockParserendBlock in interface NexusBlockParserpublic void beginComment()
NexusBlockParserbeginComment in interface NexusBlockParserpublic void endComment()
NexusBlockParserendComment in interface NexusBlockParserpublic void endTokenGroup()
NexusBlockParserendTokenGroup in interface NexusBlockParserpublic void commentText(String comment) throws ParseException
NexusBlockParsercommentText in interface NexusBlockParsercomment - the text of the comment.ParseExceptionpublic abstract void parseToken(String token) throws ParseException
NexusBlockParserparseToken in interface NexusBlockParsertoken - the token to parse.ParseException - if the token is unparseable.public boolean wantsBracketsAndBraces()
NexusBlockParserwantsBracketsAndBraces in interface NexusBlockParserCopyright © 2014 BioJava. All rights reserved.