Constructor and Description |
---|
Visit() |
Modifier and Type | Method and Description |
---|---|
void |
dontGoDeeper()
Prevents the visitor from visiting any children of the object currently visited
|
R |
getResult()
Gets the result of the visit/traversal.
|
boolean |
isContinue()
Checks if the visit/traversal should continue
|
boolean |
isDontGoDeeper()
Checks if the visit/traversal has been stopped from visiting children of the currently
visited object
|
boolean |
isStopped()
Checks if the visit/traversal has been stopped
|
void |
stop()
Stops the visit/traversal
|
void |
stop(R result)
Stops the visit/traversal and returns
result |
public void stop(R result)
result
public void dontGoDeeper()
dontGoDeeper
in interface IVisit<R>
public boolean isStopped()
true
if the visit/traversal has been stoppedpublic boolean isContinue()
true
if the visit/traversal should continuepublic boolean isDontGoDeeper()
true
if the visit/traversal should not visit children of the currently
visited objectpublic R getResult()
stop(Object)
or
remains null
if visit/traversal has ended in any other wayCopyright © 2006–2022 Apache Software Foundation. All rights reserved.