Modifier and Type | Field and Description |
---|---|
static char |
TEMPO |
Constructor and Description |
---|
TempoSubparser() |
Modifier and Type | Method and Description |
---|---|
static TempoSubparser |
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.
|
static void |
populateContext(StaccatoParserContext context) |
public static final char TEMPO
public static TempoSubparser getInstance()
public boolean matches(java.lang.String music)
Subparser
public Token.TokenType getTokenType(java.lang.String tokenString)
Subparser
getTokenType
in interface Subparser
tokenString
- The Staccato token to map to a typepublic int parse(java.lang.String music, StaccatoParserContext context)
Subparser
public static void populateContext(StaccatoParserContext context)