java.lang.Object
de.serra.so_dirty.difference.DifferenceVisit<T>
- Type Parameters:
T- the type of object the visitor is expected to return. If none useVoid.
Allows visitors to control the traversal.
- Author:
- Peter Lamby
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DifferenceVisit
Constructs.Allows to specify a default
valuethat is returned byvalue()if no more specifc is set bystop(Object).- Parameters:
value- The default value.
-
-
Method Details
-
stop
public void stop()Stops the traversal. -
stop
Stops the traversal withvalue.- Parameters:
value- The return value of the traversal.
-
dontGoDeeper
public void dontGoDeeper()Avoids the traversal of children. -
value
The value that should be returned by the traversal.- Returns:
- the value of the traversal.
-
isStopped
public boolean isStopped()Is the traversal stopped?- Returns:
trueif the traversal is stopped.
-
isDontGoDeeper
public boolean isDontGoDeeper()Should the children not be traversed.- Returns:
trueif the children should not be traversed.
-