|
||||||||||
| 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
org.biojavax.bio.phylo.io.nexus.TreesBlockBuilder
public class TreesBlockBuilder
Builds Nexus taxa blocks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder |
|---|
NexusBlockBuilder.Abstract |
| Constructor Summary | |
|---|---|
TreesBlockBuilder()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract |
|---|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlock |
| 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 |
|---|
beginComment, commentText, endComment, startBlock |
| Constructor Detail |
|---|
public TreesBlockBuilder()
| Method Detail |
|---|
protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment in class NexusBlockBuilder.Abstractcomment - the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject in class NexusBlockBuilder.Abstractpublic void endBlock()
NexusBlockListener
endBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListener
endTokenGroup in interface NexusBlockListener
public void addTranslation(String label,
String taxa)
TreesBlockListener
addTranslation in interface TreesBlockListenerlabel - the label to add.taxa - the taxa name this label will represent.
public void addTree(String label,
TreesBlock.NewickTreeString tree)
TreesBlockListener
addTree in interface TreesBlockListenerlabel - the label to give the tree.tree - the tree to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||