Package org.camunda.bpm.engine.impl.tree
Class ReferenceWalker<T>
java.lang.Object
org.camunda.bpm.engine.impl.tree.ReferenceWalker<T>
- Direct Known Subclasses:
ActivityInstanceWalker
,CompensationEventSubscriptionWalker
,ExecutionTopDownWalker
,MigratingProcessElementInstanceTopDownWalker
,SingleReferenceWalker
A walker for walking through an object reference structure (e.g. an execution tree).
Any visited element can have any number of following elements. The elements are visited
with a breadth-first approach: The walker maintains a list of next elements to which it adds
a new elements at the end whenever it has visited an element. The walker stops when it encounters
an element that fulfills the given ReferenceWalker.WalkCondition
.
Subclasses define the type of objects and provide the walking behavior.
- Author:
- Thorben Lindhauer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPostVisitor
(TreeVisitor<T> collector) addPreVisitor
(TreeVisitor<T> collector) protected abstract Collection<T>
walkUntil
(ReferenceWalker.WalkCondition<T> condition) walkWhile
(ReferenceWalker.WalkCondition<T> condition)
-
Field Details
-
currentElements
-
preVisitor
-
postVisitor
-
-
Constructor Details
-
ReferenceWalker
-
ReferenceWalker
-
-
Method Details
-
nextElements
-
addPreVisitor
-
addPostVisitor
-
walkWhile
-
walkUntil
-
walkWhile
-
walkUntil
-
getCurrentElement
-