public interface Visitable
Visitor
.Modifier and Type | Method and Description |
---|---|
static void |
accept(Visitable obj,
Visitor visitor) |
void |
accept(Visitor visitor)
Provides each value of this container to the provided
Visitor . |
static void accept(Visitable obj, Visitor visitor) throws BaseException
BaseException
void accept(Visitor visitor) throws BaseException
Visitor
.visitor
- the visitor to apply to each value.BaseException
- if there is an error while performing the visit