public abstract class AbstractIndexedVisitable extends AbstractVisitable implements IndexedVisitable
Visitable classes.| Constructor and Description |
|---|
AbstractIndexedVisitable() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor,
long firstValueIndex)
Provides each value of this container to the provided
Visitor,
beginning from the provided index position. |
protected void |
doAccept(Visitor visitor)
Provides each value of this container to the provided
Visitor. |
protected abstract void |
doAccept(Visitor visitor,
long firstValueIndex)
Provides each value of this container to the provided
Visitor. |
acceptpublic final void accept(Visitor visitor, long firstValueIndex) throws BaseException
IndexedVisitableVisitor,
beginning from the provided index position.accept in interface IndexedVisitablevisitor - the visitor to apply to each value.firstValueIndex - index of first element to be visited by the VisitorBaseException - if there is an error while performing the visitprotected void doAccept(Visitor visitor) throws VisitCanceledException, BaseException
AbstractVisitableVisitor.
The VisitCanceledException will be managed by the parent
AbstractVisitable class, so simply throw it.doAccept in class AbstractVisitableVisitCanceledExceptionBaseExceptionprotected abstract void doAccept(Visitor visitor, long firstValueIndex) throws VisitCanceledException, BaseException
Visitor.
The VisitCanceledException will be managed by the parent
AbstractIndexedVisitable class, so simply throw it.VisitCanceledExceptionBaseException