PhyloSort

phylosort
Class NewickParser

java.lang.Object
  extended by phylosort.NewickParser

public final class NewickParser
extends java.lang.Object

A parser to Newick (8:45) tree standard format. Currently, it is assumed that no whitespaces are included in the text of the tree.

Version:
$Revision: 1.5 $
Author:
Ahmed Moustafa

Constructor Summary
NewickParser()
           
 
Method Summary
static TreeNode parse(java.lang.String str)
          Parses a tree string into a TreeNode
static TreeNode parse(java.lang.String _str, TreeNode parent)
          Parses a tree string into a TreeNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewickParser

public NewickParser()
Method Detail

parse

public static TreeNode parse(java.lang.String str)
Parses a tree string into a TreeNode

Parameters:
str - The string to parse
Returns:
TreeNode representation of the tree string

parse

public static TreeNode parse(java.lang.String _str,
                             TreeNode parent)
Parses a tree string into a TreeNode

Parameters:
_str - The string to parse
parent - The parent of the tree of the tree to parse
Returns:
TreeNode representation of the tree string

PhyloSort

SourceForge.Net