Module hw06

Interface ITokVisitorCmd


public interface ITokVisitorCmd
A command for use in ATokVisitors
  • Method Summary

    Modifier and Type
    Method
    Description
    apply​(String id, Token host, Object... params)
    The ATokVisitor delegates its caseAt call to this method
  • Method Details

    • apply

      Object apply(String id, Token host, Object... params)
      The ATokVisitor delegates its caseAt call to this method
      Parameters:
      id - the id (name) of the host Token
      host - the host token itelf
      params - vararg list of input parameters for use by the command.
      Returns:
      the result of the running the command.