org.camunda.bpm.engine.impl.tree
Class TreeWalker<T>
java.lang.Object
org.camunda.bpm.engine.impl.tree.TreeWalker<T>
- Direct Known Subclasses:
- ActivityExecutionHierarchyWalker, ExecutionWalker, FlowScopeWalker
public abstract class TreeWalker<T>
- extends Object
Abstract class that walks through a tree hierarchy. The subclass define the
type of tree and provide the concrete walking behavior.
- Author:
- Thorben Lindhauer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentElement
protected T currentElement
preVisitor
protected List<TreeVisitor<T>> preVisitor
postVisitor
protected List<TreeVisitor<T>> postVisitor
TreeWalker
public TreeWalker(T initialElement)
nextElement
protected abstract T nextElement()
addPreVisitor
public TreeWalker<T> addPreVisitor(TreeVisitor<T> collector)
addPostVisitor
public TreeWalker<T> addPostVisitor(TreeVisitor<T> collector)
walkWhile
public void walkWhile()
walkUntil
public void walkUntil()
walkWhile
public T walkWhile(TreeWalker.WalkCondition<T> condition)
walkUntil
public T walkUntil(TreeWalker.WalkCondition<T> condition)
getCurrentElement
public T getCurrentElement()
Copyright © 2016 camunda services GmbH. All rights reserved.