abc.parser
Class AbcFileParserAdapter

java.lang.Object
  extended byabc.parser.AbcFileParserAdapter
All Implemented Interfaces:
AbcFileParserListenerInterface, java.util.EventListener, TuneParserListenerInterface

public class AbcFileParserAdapter
extends java.lang.Object
implements AbcFileParserListenerInterface

A default implementation of a file parser listener that does nothing.


Constructor Summary
AbcFileParserAdapter()
           
 
Method Summary
 void fileBegin()
          Invoked when the parsing of the file begins.
 void fileEnd()
          Invoked when the parsing of the file end.
 void invalidCharacter(InvalidCharacterEvent evt)
          Invoked when an invalid character has been parsed.
 void invalidToken(InvalidTokenEvent evt)
          Invoked when an invalid token has been parsed.
 void lineProcessed(java.lang.String line)
          Invoked when a line has been processed.
 void tuneBegin()
          Invoked when the parser reaches the beginning of a tune.
 void tuneEnd(Tune tune)
          Invoked when the parser reaches the end of a tune.
 void validToken(TokenEvent evt)
          Invoked when a valid token has been parsed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbcFileParserAdapter

public AbcFileParserAdapter()
Method Detail

tuneBegin

public void tuneBegin()
Invoked when the parser reaches the beginning of a tune.

Specified by:
tuneBegin in interface TuneParserListenerInterface

invalidToken

public void invalidToken(InvalidTokenEvent evt)
Invoked when an invalid token has been parsed.

Specified by:
invalidToken in interface TuneParserListenerInterface
Parameters:
evt - An event describing the invalid token.

validToken

public void validToken(TokenEvent evt)
Invoked when a valid token has been parsed.

Specified by:
validToken in interface TuneParserListenerInterface
Parameters:
evt - An event describing the valid token.

invalidCharacter

public void invalidCharacter(InvalidCharacterEvent evt)
Invoked when an invalid character has been parsed.

Specified by:
invalidCharacter in interface TuneParserListenerInterface
Parameters:
evt - An event describing the invalid character.

tuneEnd

public void tuneEnd(Tune tune)
Invoked when the parser reaches the end of a tune.

Specified by:
tuneEnd in interface TuneParserListenerInterface
Parameters:
tune - The tune that has just been parsed.

fileBegin

public void fileBegin()
Invoked when the parsing of the file begins.

Specified by:
fileBegin in interface AbcFileParserListenerInterface

fileEnd

public void fileEnd()
Invoked when the parsing of the file end.

Specified by:
fileEnd in interface AbcFileParserListenerInterface

lineProcessed

public void lineProcessed(java.lang.String line)
Description copied from interface: AbcFileParserListenerInterface
Invoked when a line has been processed.

Specified by:
lineProcessed in interface AbcFileParserListenerInterface
Parameters:
line - The line that has just been processed.