abstract
int
|
getResultCode()
|
abstract
void
|
interrupt(boolean success, int code)
Notify the visitor that the visit of the tree should be stopped.
|
abstract
void
|
interrupt(boolean success)
Notify the visitor that the visit of the tree should be stopped.
|
abstract
boolean
|
isInterruptedVisit()
|
abstract
boolean
|
isVisitedSuccessfully()
|
abstract
T
|
parent(int i)
This convenience method returns the i'th ancestor (i=0 being the immediate parent) of the
element.
|
abstract
Iterator<T>
|
parentsIterator()
Optional iterator containing the parents; non-null only if FLAG_RECORD_PARENTS was
used when creating the object.
|
abstract
void
|
setReplacedNode(T newNode)
Notify the visitor that the current node was replaced by the
process method.
|
abstract
void
|
setVisitResult(boolean success)
Saves the visit result (do not stop the visitor: use interrupt(boolean) to stop the
process)
|
abstract
void
|
skipChildren()
Used in DFS pre-order to notify the visitor that the children of the currently visited node
should be skipped; the visitor will then proceed with the next cousin.
|