Package org.staccato
Class AtomSubparser
java.lang.Object
org.staccato.AtomSubparser
- All Implemented Interfaces:
Subparser
Parses Instrument, Voice, and Layer tokens. Each has values that are parsed as bytes.
- Author:
- David Koelle (dkoelle@gmail.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomSubparser
getTokenType
(String tokenString) Asks the subparser to provide a TokenType for the given token.boolean
Indicates whether the subparser should be responsible for parsing the given music string.int
parse
(String music, StaccatoParserContext context) Parses the given music string.
-
Field Details
-
ATOM
public static final char ATOM- See Also:
-
QUARK_SEPARATOR
- See Also:
-
-
Constructor Details
-
AtomSubparser
public AtomSubparser()
-
-
Method Details
-
getInstance
-
matches
Description copied from interface:Subparser
Indicates whether the subparser should be responsible for parsing the given music string. -
getTokenType
Description copied from interface:Subparser
Asks the subparser to provide a TokenType for the given token.- Specified by:
getTokenType
in interfaceSubparser
- Parameters:
tokenString
- The Staccato token to map to a type
-
parse
Description copied from interface:Subparser
Parses the given music string.
-