|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.parser.AbcParserAbstract
abc.parser.TuneParser
This class provides String parsing for tunes in abc notation.
Constructor Summary | |
TuneParser()
Constructs a new tune parser. |
Method Summary | |
void |
addListener(TuneParserListenerInterface listener)
Adds a listener to catch events thrwon by the parser durin tune parsing. |
Tune |
parse(java.io.Reader abcCharStream)
Parses the abc stream and returns the tune corresponding to the notation. |
Tune |
parse(java.lang.String tuneNotation)
Parses the given string and returns the tune corresponding to the notation. |
Tune |
parseHeader(java.io.Reader abcCharStream)
Parse the given stream and creates a Tune object with no score as parsing result. |
Tune |
parseHeader(java.lang.String tuneNotation)
Parses the tune notation and returns only header information. |
void |
removeListener(TuneParserListenerInterface listener)
Removes a listener from this parser. |
Methods inherited from class abc.parser.AbcParserAbstract |
getScanner |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TuneParser()
Method Detail |
public Tune parse(java.lang.String tuneNotation)
parse
in class AbcParserAbstract
tuneNotation
- A tune written using ABC notation.
public Tune parse(java.io.Reader abcCharStream)
parse
in class AbcParserAbstract
abcCharStream
- An abc stream.
public Tune parseHeader(java.lang.String tuneNotation)
parseHeader
in class AbcParserAbstract
tuneNotation
- A tune written using ABC notation.
public Tune parseHeader(java.io.Reader abcCharStream)
parseHeader
in class AbcParserAbstract
abcCharStream
- A stream in abc Notation.
public void addListener(TuneParserListenerInterface listener)
addListener
in class AbcParserAbstract
listener
- Object that implements the TuneParserListenerInterface.removeListener(abc.parser.TuneParserListenerInterface)
public void removeListener(TuneParserListenerInterface listener)
removeListener
in class AbcParserAbstract
listener
- The listener to be removed.addListener(abc.parser.TuneParserListenerInterface)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |