Package org.staccato
Class FunctionSubparser
java.lang.Object
org.staccato.FunctionSubparser
- All Implemented Interfaces:
Subparser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateFunctionCall
(String functionName, byte... vals) static String
generateFunctionCall
(String functionName, Object val) static String
generateParenParamIfNecessary
(String functionId, String value) static FunctionSubparser
getTokenType
(String tokenString) Asks the subparser to provide a TokenType for the given token.boolean
Indicates whether the subparser should be responsible for parsing the given music string.int
parse
(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:Subparser
Indicates whether the subparser should be responsible for parsing the given music string. -
getTokenType
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
Description copied from interface:Subparser
Parses the given music string. -
generateFunctionCall
-
generateFunctionCall
-
generateParenParamIfNecessary
-