Module hw06

Class MTSeqList

java.lang.Object
provided.abcMusic.musicFW.MTSeqList
All Implemented Interfaces:
IPhrase, ISeqList

public class MTSeqList extends Object implements ISeqList
An empty sequence list. ---------------------------------------------- An empty ISeqList
  • Field Details

  • Constructor Details

    • MTSeqList

      private MTSeqList()
      private constructor
  • Method Details

    • execute

      public Object execute(IPhraseVisitor algo, Object... params)
      Calls the MTSeqList.ID case of the visitor.
      Specified by:
      execute in interface IPhrase
      Parameters:
      algo - The visitor to execute
      params - The input parameters supplied to the algo when its appropriate case is called.
      Returns:
      The return value from executing the appropriate case on the visitor.
    • toString

      public String toString()
      Returns "{}" return "{}" always.
      Overrides:
      toString in class Object