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, startBlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginComment, commentText, endComment, startBlock
public TreesBlockBuilder()
protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment
in class NexusBlockBuilder.Abstract
comment
- the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject
in class NexusBlockBuilder.Abstract
public void endBlock()
NexusBlockListener
endBlock
in interface NexusBlockListener
public void endTokenGroup()
NexusBlockListener
endTokenGroup
in interface NexusBlockListener
public void addTranslation(String label, String taxa)
TreesBlockListener
addTranslation
in interface TreesBlockListener
label
- the label to add.taxa
- the taxa name this label will represent.public void addTree(String label, TreesBlock.NewickTreeString tree)
TreesBlockListener
addTree
in interface TreesBlockListener
label
- the label to give the tree.tree
- the tree to add.Copyright © 2014 BioJava. All rights reserved.