Class FunctionSubparser
java.lang.Object
org.staccato.FunctionSubparser
- All Implemented Interfaces:
Subparser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateFunctionCall(String functionName, byte... vals) static StringgenerateFunctionCall(String functionName, Object val) static StringgenerateParenParamIfNecessary(String functionId, String value) static FunctionSubparsergetTokenType(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.
-
Field Details
-
FUNCTION
public static final char FUNCTION- See Also:
-
-
Constructor Details
-
FunctionSubparser
public FunctionSubparser()
-
-
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. -
generateFunctionCall
-
generateFunctionCall
-
generateParenParamIfNecessary
-