public abstract static class NexusBlockBuilder.Abstract extends Object implements NexusBlockBuilder
NexusBlockBuilder.Abstract
Constructor and Description |
---|
NexusBlockBuilder.Abstract() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addComment(NexusComment comment)
Tell the builder to add the given comment at the current location.
|
void |
beginComment()
Opening a comment tag.
|
void |
commentText(String comment)
Receiving free text inside a comment tag.
|
void |
endComment()
Closing a comment tag.
|
protected String |
getBlockName()
Obtains the name of this block.
|
NexusBlock |
getNexusBlock()
Obtain the constructed block.
|
void |
startBlock(String blockName)
Notifies the parser that a new block is starting.
|
protected abstract NexusBlock |
startBlockObject()
Tell the builder to start a new block object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endBlock, endTokenGroup
public NexusBlockBuilder.Abstract()
protected String getBlockName()
public void beginComment()
NexusBlockListener
beginComment
in interface NexusBlockListener
public void commentText(String comment)
NexusBlockListener
commentText
in interface NexusBlockListener
comment
- the text of the comment.public void endComment()
NexusBlockListener
endComment
in interface NexusBlockListener
protected abstract void addComment(NexusComment comment)
comment
- the comment to add.ParseException
- if the comment was invalid.public void startBlock(String blockName)
NexusBlockListener
startBlock
in interface NexusBlockListener
blockName
- the name of the newly started block.protected abstract NexusBlock startBlockObject()
public NexusBlock getNexusBlock()
NexusBlockBuilder
getNexusBlock
in interface NexusBlockBuilder
Copyright © 2014 BioJava. All rights reserved.