org.apache.hadoop.tools.rumen
Class TreePath

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.TreePath

public class TreePath
extends Object

This describes a path from a node to the root. We use it when we compare two trees during rumen unit tests. If the trees are not identical, this chain will be converted to a string which describes the path from the root to the fields that did not compare.


Constructor Summary
TreePath(TreePath parent, String fieldName)
           
TreePath(TreePath parent, String fieldName, int index)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreePath

public TreePath(TreePath parent,
                String fieldName)

TreePath

public TreePath(TreePath parent,
                String fieldName,
                int index)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 The Apache Software Foundation