Modifier and Type | Field and Description |
---|---|
static char |
INSTRUMENT |
static char |
LAYER |
static char |
VOICE |
Constructor and Description |
---|
IVLSubparser() |
Modifier and Type | Method and Description |
---|---|
static IVLSubparser |
getInstance() |
Token.TokenType |
getTokenType(java.lang.String tokenString)
Asks the subparser to provide a TokenType for the given token.
|
byte |
getValue(java.lang.String ivl,
StaccatoParserContext context)
Given a string like "V0" or "I[Piano]", this method will return the value of the 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 INSTRUMENT
public static final char LAYER
public static final char VOICE
public static IVLSubparser 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 byte getValue(java.lang.String ivl, StaccatoParserContext context)
public static void populateContext(StaccatoParserContext context)