public interface NexusBlockParser
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
NexusBlockParser.Abstract
All block parsers should derive from this abstract parser. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
UNKNOWN_BLOCK
The name for an unknown block parser. 
 | 
| 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. 
 | 
void | 
parseToken(String token)
Notifies the parser of the next token. 
 | 
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? 
 | 
static final String UNKNOWN_BLOCK
void startBlock(String blockName)
blockName - the name of the block.void endBlock()
void parseToken(String token) throws ParseException
token - the token to parse.ParseException - if the token is unparseable.void beginComment()
void endComment()
void endTokenGroup()
void commentText(String comment) throws ParseException
comment - the text of the comment.ParseExceptionNexusBlockListener getBlockListener()
boolean wantsBracketsAndBraces()
Copyright © 2020 BioJava. All rights reserved.