|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.parser.AbcParserAbstract
Abstract class from which all abc notation parsers inherit. Known limitations: ELEMSKIP is not supported. The context to switch from abc header parsing to abc music parsing is done in
private KeySignature parseFieldKey(Set follow).
Constructor Summary | |
AbcParserAbstract()
Constructs a new tune parser. |
Method Summary | |
void |
addListener(TuneParserListenerInterface listener)
Adds a listener to catch events thrown by the parser durin tune parsing. |
Scanner |
getScanner()
Returns the scanner internally used for parsing. |
Tune |
parse(java.io.Reader charStream)
Parses the specified stream in ABC notation. |
Tune |
parse(java.lang.String tune)
Parse the given string and creates a Tune object as parsing result. |
Tune |
parseHeader(java.io.Reader charStream)
Parse the given string and creates a Tune object with no score as parsing result. |
Tune |
parseHeader(java.lang.String tune)
Parses the header of the specified tune notation. |
void |
removeListener(TuneParserListenerInterface listener)
Removes a listener from this parser. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbcParserAbstract()
Method Detail |
public Scanner getScanner()
public void addListener(TuneParserListenerInterface listener)
listener
- Object that implements the TuneParserListenerInterface.public void removeListener(TuneParserListenerInterface listener)
listener
- The listener to be removed.public Tune parse(java.lang.String tune)
tune
- The abc tune, as a String, to be parsed.
public Tune parse(java.io.Reader charStream)
charStream
- Tune stream in ABC notation.
public Tune parseHeader(java.lang.String tune)
tune
- A tune notation in ABC.
public Tune parseHeader(java.io.Reader charStream)
charStream
- The stream to be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |