Module hw06

Interface IPhraseVisitorCmd


public interface IPhraseVisitorCmd
The command used by APhraseVisitor that is associated with a host or hosts.
Author:
rixner ---------------------------------------------- Abstract command used by APhraseVisitor. Each command is associated with a particular host(s).
  • Method Summary

    Modifier and Type
    Method
    Description
    apply​(String id, IPhrase host, Object... params)
    The method called when the APhraseVisitor delegates its caseAt call to this command.
  • Method Details

    • apply

      Object apply(String id, IPhrase host, Object... params)
      The method called when the APhraseVisitor delegates its caseAt call to this command.
      Parameters:
      id - the id of the host
      host - the host itself
      params - vararg list of input parameters.
      Returns:
      the result of this processing of the host.