|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract
public abstract static class NexusBlockBuilder.Abstract
This abstract version knows how to build and add comments.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder |
|---|
NexusBlockBuilder.Abstract |
| Constructor Summary | |
|---|---|
NexusBlockBuilder.Abstract()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener |
|---|
endBlock, endTokenGroup |
| Constructor Detail |
|---|
public NexusBlockBuilder.Abstract()
| Method Detail |
|---|
protected String getBlockName()
public void beginComment()
NexusBlockListener
beginComment in interface NexusBlockListenerpublic void commentText(String comment)
NexusBlockListener
commentText in interface NexusBlockListenercomment - the text of the comment.public void endComment()
NexusBlockListener
endComment in interface NexusBlockListenerprotected 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 NexusBlockListenerblockName - the name of the newly started block.protected abstract NexusBlock startBlockObject()
public NexusBlock getNexusBlock()
NexusBlockBuilder
getNexusBlock in interface NexusBlockBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||