public interface IVisitor
An abstract visitor to an IHost object. Provides cases for each IHost subclass type.
- Author:
- swong
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic IVisitor
A null visitor, used when no visitor is yet defined. -
Method Summary
-
Field Details
-
NULL_VISITOR
A null visitor, used when no visitor is yet defined. Simply returns a string indicating which host executed this visitor.
-
-
Method Details
-
caseHostA
Case for HostA- Parameters:
host
- The HostA instanceparams
- Optional input parameters- Returns:
- The result of processing HostA with the given parameters.
-
caseHostB
Case for HostB- Parameters:
host
- The HostB instanceparams
- Optional input parameters- Returns:
- The result of processing HostB with the given parameters.
-
caseHostC
Case for HostC- Parameters:
host
- The HostC instanceparams
- Optional input parameters- Returns:
- The result of processing HostC with the given parameters.
-