java.lang.Object
de.serra.so_dirty.difference.DifferenceVisit<T>
- Typparameter:
T- the type of object the visitor is expected to return. If none useVoid.
Allows visitors to control the traversal.
- Autor:
- Peter Lamby
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
DifferenceVisit
Constructs.Allows to specify a default
valuethat is returned byvalue()if no more specifc is set bystop(Object).- Parameter:
value- The default value.
-
-
Methodendetails
-
stop
public void stop()Stops the traversal. -
stop
Stops the traversal withvalue.- Parameter:
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.- Gibt zurück:
- the value of the traversal.
-
isStopped
public boolean isStopped()Is the traversal stopped?- Gibt zurück:
trueif the traversal is stopped.
-
isDontGoDeeper
public boolean isDontGoDeeper()Should the children not be traversed.- Gibt zurück:
trueif the children should not be traversed.
-