org.stringtree.util.tree
Class Trees

java.lang.Object
  extended by org.stringtree.util.tree.Trees

public class Trees
extends java.lang.Object


Field Summary
static Tree EMPTY_TREE
           
 
Constructor Summary
Trees()
           
 
Method Summary
static void adopt(MutableTree parent, MutableTree child)
           
static void dump(Tree t, java.io.OutputStream out)
           
static void dump(Tree t, java.io.Writer out)
           
static void dump(Tree t, java.io.Writer out, int level)
           
static boolean equals(Tree t1, Tree t2)
           
static Tree getRoot(Tree tree)
           
static void indent(java.io.Writer out, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_TREE

public static final Tree EMPTY_TREE
Constructor Detail

Trees

public Trees()
Method Detail

getRoot

public static Tree getRoot(Tree tree)

equals

public static boolean equals(Tree t1,
                             Tree t2)

indent

public static void indent(java.io.Writer out,
                          int level)
                   throws java.io.IOException
Throws:
java.io.IOException

dump

public static void dump(Tree t,
                        java.io.Writer out,
                        int level)
                 throws java.io.IOException
Throws:
java.io.IOException

dump

public static void dump(Tree t,
                        java.io.Writer out)
                 throws java.io.IOException
Throws:
java.io.IOException

dump

public static void dump(Tree t,
                        java.io.OutputStream out)

adopt

public static void adopt(MutableTree parent,
                         MutableTree child)