public class TreeCloner
extends java.lang.Object
implements org.apache.jorphan.collections.HashTreeTraverser
NoThreadClone by default.| Constructor and Description |
|---|
TreeCloner()
Clone the test tree, honouring NoThreadClone markers.
|
TreeCloner(boolean honourNoThreadClone)
Clone the test tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(java.lang.Object node,
org.apache.jorphan.collections.HashTree subTree) |
protected java.lang.Object |
addNodeToTree(java.lang.Object node) |
org.apache.jorphan.collections.ListedHashTree |
getClonedTree() |
void |
processPath() |
void |
subtractNode() |
public TreeCloner()
public TreeCloner(boolean honourNoThreadClone)
honourNoThreadClone - set false to clone NoThreadClone nodes as wellpublic final void addNode(java.lang.Object node,
org.apache.jorphan.collections.HashTree subTree)
addNode in interface org.apache.jorphan.collections.HashTreeTraverserprotected java.lang.Object addNodeToTree(java.lang.Object node)
node - Node to add to tree or notpublic void subtractNode()
subtractNode in interface org.apache.jorphan.collections.HashTreeTraverserpublic org.apache.jorphan.collections.ListedHashTree getClonedTree()
public void processPath()
processPath in interface org.apache.jorphan.collections.HashTreeTraverserCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.