public class TreesBlockBuilder extends NexusBlockBuilder.Abstract implements TreesBlockListener
NexusBlockBuilder.Abstract| Constructor and Description |
|---|
TreesBlockBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComment(NexusComment comment)
Tell the builder to add the given comment at the current location.
|
void |
addTranslation(String label,
String taxa)
Add a translation.
|
void |
addTree(String label,
TreesBlock.NewickTreeString tree)
Adds a tree.
|
void |
endBlock()
Notifies the parser that a block is ending.
|
void |
endTokenGroup()
Closing a line (semi-colon encountered).
|
protected NexusBlock |
startBlockObject()
Tell the builder to start a new block object.
|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginComment, commentText, endComment, startBlockpublic TreesBlockBuilder()
protected void addComment(NexusComment comment)
NexusBlockBuilder.AbstractaddComment in class NexusBlockBuilder.Abstractcomment - the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.AbstractstartBlockObject in class NexusBlockBuilder.Abstractpublic void endBlock()
NexusBlockListenerendBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListenerendTokenGroup in interface NexusBlockListenerpublic void addTranslation(String label, String taxa)
TreesBlockListeneraddTranslation in interface TreesBlockListenerlabel - the label to add.taxa - the taxa name this label will represent.public void addTree(String label, TreesBlock.NewickTreeString tree)
TreesBlockListeneraddTree in interface TreesBlockListenerlabel - the label to give the tree.tree - the tree to add.Copyright © 2020 BioJava. All rights reserved.