Module hw06

Interface IPhraseVisitor

All Known Implementing Classes:
APhraseVisitor

public interface IPhraseVisitor
Interface for a Phrase visitor. ---------------------------------------------- Abstract extended visitor. Supplies case behavior for every host.
  • Method Summary

    Modifier and Type
    Method
    Description
    caseAt​(String id, IPhrase host, Object... params)
    Called by the host to run the appropriate processing for that host.
  • Method Details

    • caseAt

      Object caseAt(String id, IPhrase host, Object... params)
      Called by the host to run the appropriate processing for that host.
      Parameters:
      id - The id of the host
      host - The host itself
      params - vararg list of input parameters that the algo might use.
      Returns:
      the result of running the associated processing for the host.