public interface Visitor
Visitable
object.Modifier and Type | Method and Description |
---|---|
void |
visit(Object obj)
Visits one of the objects provided by a
Visitable . |
void visit(Object obj) throws VisitCanceledException, BaseException
Visitable
.obj
- the object to perform the action withVisitCanceledException
- thrown if the visit ha to be cancelled by the
Visitable
BaseException
- if there is an error performing the visit