public class WalkingState<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WalkingState.TreeGuide<T> |
Modifier and Type | Field and Description |
---|---|
protected boolean |
startedWalking |
Constructor and Description |
---|
WalkingState(WalkingState.TreeGuide<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
elementFinished(T element) |
void |
elementStarted(T element) |
T |
next(T element,
T root,
boolean isDown) |
static <T> boolean |
processAll(T root,
WalkingState.TreeGuide<T> treeGuide,
Processor<? super T> processor)
process in the in-order fashion
|
void |
startedWalking() |
void |
stopWalking() |
void |
visit(T element) |
public WalkingState(WalkingState.TreeGuide<T> delegate)
public void elementFinished(T element)
public void visit(T element)
public void elementStarted(T element)
public void startedWalking()
public void stopWalking()
public static <T> boolean processAll(T root, WalkingState.TreeGuide<T> treeGuide, Processor<? super T> processor)