abc.parser
Interface TuneParserListenerInterface

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
AbcFileParserListenerInterface
All Known Implementing Classes:
AbcFileParserAdapter, ErrorsList, ParsingEventsList, TuneParserAdapter

public interface TuneParserListenerInterface
extends java.util.EventListener

Interface that should be implemented by any object that listens to tunes parsing.


Method Summary
 void invalidCharacter(InvalidCharacterEvent event)
          Invoked when an invalid character has been found by the parser.
 void invalidToken(InvalidTokenEvent event)
          Invoked when an invalid token has been encountered.
 void tuneBegin()
          Invoked when the parsing of the tune begins.
 void tuneEnd(Tune tune)
          Invoked when the parsing of a tune has ended.
 void validToken(TokenEvent event)
          Invoked when a valid token has been encountered by the parser.
 

Method Detail

tuneBegin

public void tuneBegin()
Invoked when the parsing of the tune begins.


invalidToken

public void invalidToken(InvalidTokenEvent event)
Invoked when an invalid token has been encountered.

Parameters:
event - An event describing the problem encountered by the parser.

validToken

public void validToken(TokenEvent event)
Invoked when a valid token has been encountered by the parser.

Parameters:
event - An event describing the valid token parsed.

invalidCharacter

public void invalidCharacter(InvalidCharacterEvent event)
Invoked when an invalid character has been found by the parser.

Parameters:
event - An event describing the invalid character found by the parser.

tuneEnd

public void tuneEnd(Tune tune)
Invoked when the parsing of a tune has ended.

Parameters:
tune - The tune that has just been parsed.