Package org.staccato
Class AtomSubparser
- java.lang.Object
-
- org.staccato.AtomSubparser
-
-
Field Summary
Fields Modifier and Type Field Description static char
ATOM
static java.lang.String
QUARK_SEPARATOR
-
Constructor Summary
Constructors Constructor Description AtomSubparser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AtomSubparser
getInstance()
Token.TokenType
getTokenType(java.lang.String tokenString)
Asks the subparser to provide a TokenType for the given token.boolean
matches(java.lang.String music)
Indicates whether the subparser should be responsible for parsing the given music string.int
parse(java.lang.String music, StaccatoParserContext context)
Parses the given music string.
-
-
-
Field Detail
-
ATOM
public static final char ATOM
- See Also:
- Constant Field Values
-
QUARK_SEPARATOR
public static final java.lang.String QUARK_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AtomSubparser getInstance()
-
matches
public boolean matches(java.lang.String music)
Description copied from interface:Subparser
Indicates whether the subparser should be responsible for parsing the given music string.
-
getTokenType
public Token.TokenType getTokenType(java.lang.String tokenString)
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
public int parse(java.lang.String music, StaccatoParserContext context)
Description copied from interface:Subparser
Parses the given music string.
-
-