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 . |
accept
public final void accept(Visitor visitor, long firstValueIndex) throws BaseException
IndexedVisitable
Visitor
,
beginning from the provided index position.accept
in interface IndexedVisitable
visitor
- the visitor to apply to each value.firstValueIndex
- index of first element to be visited by the Visitor
BaseException
- if there is an error while performing the visitprotected void doAccept(Visitor visitor) throws VisitCanceledException, BaseException
AbstractVisitable
Visitor
.
The VisitCanceledException
will be managed by the parent
AbstractVisitable
class, so simply throw it.doAccept
in class AbstractVisitable
VisitCanceledException
BaseException
protected 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.VisitCanceledException
BaseException