Class TreeCloner

  • All Implemented Interfaces:
    org.apache.jorphan.collections.HashTreeTraverser

    
    public class TreeCloner
     implements HashTreeTraverser
                        

    Clones the test tree, skipping test elements that implement NoThreadClone by default.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeCloner() Clone the test tree, honouring NoThreadClone markers.
      TreeCloner(boolean honourNoThreadClone) Clone the test tree.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final void addNode(Object node, HashTree subTree)
      void subtractNode()
      ListedHashTree getClonedTree()
      void processPath()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeCloner

        TreeCloner()
        Clone the test tree, honouring NoThreadClone markers.
      • TreeCloner

        TreeCloner(boolean honourNoThreadClone)
        Clone the test tree.
        Parameters:
        honourNoThreadClone - set false to clone NoThreadClone nodes as well