T - the type of object to be visitedpublic interface Visitor<T>
Visitor interface defines the contract for an object that is
used to visit another object.| Modifier and Type | Method and Description |
|---|---|
boolean |
visit(T... visitable)
Visit the given object.
|
boolean visit(T... visitable)
visitable - the object to be visitedtrue if the visit was successful and visiting should
continue, false otherwise