Package org.flowable.engine.debug
Class ExecutionTreeBfsIterator
java.lang.Object
org.flowable.engine.debug.ExecutionTreeBfsIterator
- All Implemented Interfaces:
Iterator<ExecutionTreeNode>
Iterates over an
ExecutionTree
using breadth-first search- Author:
- Joram Barrez
-
Field Summary
Modifier and TypeFieldDescriptionprotected LinkedList<ExecutionTreeNode>
protected Iterator<ExecutionTreeNode>
protected boolean
protected ExecutionTreeNode
-
Constructor Summary
ConstructorDescriptionExecutionTreeBfsIterator
(ExecutionTreeNode executionTree) ExecutionTreeBfsIterator
(ExecutionTreeNode rootNode, boolean reverseOrder) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
rootNode
-
reverseOrder
protected boolean reverseOrder -
flattenedList
-
flattenedListIterator
-
-
Constructor Details
-
ExecutionTreeBfsIterator
-
ExecutionTreeBfsIterator
-
-
Method Details
-
flattenTree
protected void flattenTree() -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<ExecutionTreeNode>
-
next
- Specified by:
next
in interfaceIterator<ExecutionTreeNode>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<ExecutionTreeNode>
-