Class WhitespaceConsumer
java.lang.Object
org.staccato.WhitespaceConsumer
- All Implemented Interfaces:
Subparser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WhitespaceConsumergetTokenType(String tokenString) Asks the subparser to provide a TokenType for the given token.booleanIndicates whether the subparser should be responsible for parsing the given music string.intparse(String music, StaccatoParserContext context) Parses the given music string.
-
Constructor Details
-
WhitespaceConsumer
public WhitespaceConsumer()
-
-
Method Details
-
getInstance
-
matches
Description copied from interface:SubparserIndicates whether the subparser should be responsible for parsing the given music string. -
getTokenType
Description copied from interface:SubparserAsks the subparser to provide a TokenType for the given token.- Specified by:
getTokenTypein interfaceSubparser- Parameters:
tokenString- The Staccato token to map to a type
-
parse
Description copied from interface:SubparserParses the given music string.
-