Module hw06

Class HostB

java.lang.Object
provided.basicVisitorFW.HostB
All Implemented Interfaces:
IHost

public class HostB extends Object implements IHost
A concrete host type
Author:
swong
  • Constructor Details

    • HostB

      public HostB()
  • Method Details

    • execute

      public Object execute(IVisitor algo, Object... params)
      Description copied from interface: IHost
      Execute the given visitor, passing the given parameters and returning the result
      Specified by:
      execute in interface IHost
      Parameters:
      algo - A visitor to execute
      params - A vararg of objects, used as parameters passed to the visitor
      Returns:
      The result of running the appropriate case on the visitor.
    • toString

      public String toString()
      Overrides:
      toString in class Object