java.lang.Object
de.serra.graph_walker.VisitController
Allows to control the traversal.
- Author:
- Peter Lamby
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GraphWalkcreateSubWalk(ObjectgraphVisitor visitor) Creates a "sub" graphwalk from the current position.abstract voidDon't visit any children of the current value.abstract booleanDetermin if the visit was stopped bystop().abstract voidstop()Immediatly stop the traversal.
-
Constructor Details
-
VisitController
protected VisitController()Constructs.
-
-
Method Details
-
stop
public abstract void stop()Immediatly stop the traversal. No more visit methods will be called.- See Also:
-
dontGoDeeper
public abstract void dontGoDeeper()Don't visit any children of the current value. -
isStopped
public abstract boolean isStopped()Determin if the visit was stopped bystop().- Returns:
trueif the visit is stopped andfalseotherwise.- See Also:
-
createSubWalk
Creates a "sub" graphwalk from the current position.It remembers the already visited nodes but otherwise acts as a walk on it's own.
- Parameters:
visitor- The visitor to use for this GraphWalk.- Returns:
- the new graph walk.
-