|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.threads.FindTestElementsUpToRootTraverser
public class FindTestElementsUpToRootTraverser
HashTreeTraverser implementation that stores in a Stack all the Test Elements on the path to a particular node.
Constructor Summary | |
---|---|
FindTestElementsUpToRootTraverser(Object nodeToFind)
|
Method Summary | |
---|---|
void |
addNode(Object node,
HashTree subTree)
The tree traverses itself depth-first, calling addNode for each object it encounters as it goes. |
List<Controller> |
getControllersToRoot()
Returns all controllers that where in Tree down to nodeToFind in reverse order (from leaf to root) |
void |
processPath()
Process path is called when a leaf is reached. |
void |
subtractNode()
Indicates traversal has moved up a step, and the visitor should remove the top node from its stack structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FindTestElementsUpToRootTraverser(Object nodeToFind)
nodeToFind
- Node to findMethod Detail |
---|
public void addNode(Object node, HashTree subTree)
addNode
in interface HashTreeTraverser
node
- the node currently encounteredsubTree
- the HashTree under the node encounteredpublic void subtractNode()
subtractNode
in interface HashTreeTraverser
public void processPath()
HashTreeTraverser.subtractNode()
call. This is a callback method, and should
not be called except by a HashTree during traversal.
processPath
in interface HashTreeTraverser
public List<Controller> getControllersToRoot()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |