org.camunda.bpm.engine.impl.tree
Class TreeWalker<T>

java.lang.Object
  extended by org.camunda.bpm.engine.impl.tree.TreeWalker<T>
Direct Known Subclasses:
AbstractBpmnActivityBehavior.LeafExecutionHierarchyWalker, ExecutionWalker, FlowScopeWalker

public abstract class TreeWalker<T>
extends Object

Author:
Thorben Lindhauer

Nested Class Summary
static class TreeWalker.NullCondition<S>
           
static interface TreeWalker.WalkCondition<S>
           
 
Field Summary
protected  T currentElement
           
protected  List<Collector<T>> postCollectors
           
protected  List<Collector<T>> preCollectors
           
 
Constructor Summary
TreeWalker(T initialElement)
           
 
Method Summary
 TreeWalker<T> addPostCollector(Collector<T> collector)
           
 TreeWalker<T> addPreCollector(Collector<T> collector)
           
 T getCurrentElement()
           
protected abstract  T nextElement()
           
 void walkUntil()
           
 T walkUntil(TreeWalker.WalkCondition<T> condition)
           
 void walkWhile()
           
 T walkWhile(TreeWalker.WalkCondition<T> condition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentElement

protected T currentElement

preCollectors

protected List<Collector<T>> preCollectors

postCollectors

protected List<Collector<T>> postCollectors
Constructor Detail

TreeWalker

public TreeWalker(T initialElement)
Method Detail

nextElement

protected abstract T nextElement()

addPreCollector

public TreeWalker<T> addPreCollector(Collector<T> collector)

addPostCollector

public TreeWalker<T> addPostCollector(Collector<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 © 2015 camunda services GmbH. All rights reserved.