- All Implemented Interfaces:
IVisitor
A visitor that returns a String that says "This is the result from HostX,
where HostX is the type of the IHost object executing this visitor.
- Author:
- swong
-
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
Visitor1
public Visitor1()
-
Method Details
-
caseHostA
Description copied from interface: IVisitor
Case for HostA
- Specified by:
caseHostA in interface IVisitor
- Parameters:
host - The HostA instance
params - Optional input parameters
- Returns:
- The result of processing HostA with the given parameters.
-
caseHostB
Description copied from interface: IVisitor
Case for HostB
- Specified by:
caseHostB in interface IVisitor
- Parameters:
host - The HostB instance
params - Optional input parameters
- Returns:
- The result of processing HostB with the given parameters.
-
caseHostC
Description copied from interface: IVisitor
Case for HostC
- Specified by:
caseHostC in interface IVisitor
- Parameters:
host - The HostC instance
params - Optional input parameters
- Returns:
- The result of processing HostC with the given parameters.
-