abc4j API Specification

abc.parser
Interface TuneParserListenerInterface

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
AbcFileParserListenerInterface
All Known Implementing Classes:
AbcFileParserAdapter, 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

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


invalidToken

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

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

validToken

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

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

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

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

abc4j API Specification

Submit a bug or feature