extvisitor
Interface IExtVisitorHost<I,H extends IExtVisitorHost<I,? extends H>>
- Type Parameters:
I - The type of the index value used by the extended visitor.H - The type of the host used by the extended visitor. Restricted to be an implementation of IExtVisitorHost<I, ? extends H>
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- ADataPacket, AExtVisitorHost, AStatus, DataPacket, FailStatus, InfoStatus, OkStatus
public interface IExtVisitorHost<I,H extends IExtVisitorHost<I,? extends H>>
- extends java.io.Serializable
An interface defining a host for an IExtVisitor who can visit this type of host.
Each concrete host will have a particular index value associated with it and call
the case associated with that index value on the visitor.
|
Method Summary |
|
execute(IExtVisitor<R,I,P,? extends H> algo,
P... params)
The method that executes (accepts) the extended visitor to process this host. |
execute
<R,P> R execute(IExtVisitor<R,I,P,? extends H> algo,
P... params)
- The method that executes (accepts) the extended visitor to process this host.
- Type Parameters:
R - The return type of the visitor.P - The type of the input parameters of the visitor.- Parameters:
algo - The extended visitor to execute.params - Vararg input parameters to the visitor.
- Returns:
- The return value from executing the visitor.