Package org.staccato
Class InstructionPreprocessor
- java.lang.Object
-
- org.staccato.InstructionPreprocessor
-
- All Implemented Interfaces:
Preprocessor
public class InstructionPreprocessor extends java.lang.Object implements Preprocessor
Turns to uppercase all tokens that are not lyrics, markers, or functions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInstruction(java.lang.String key, java.lang.String value)
void
addInstruction(java.lang.String key, PatternProducer value)
void
addInstruction(java.lang.String key, Instruction value)
static InstructionPreprocessor
getInstance()
java.lang.String
preprocess(java.lang.String s, StaccatoParserContext context)
-
-
-
Method Detail
-
getInstance
public static InstructionPreprocessor getInstance()
-
addInstruction
public void addInstruction(java.lang.String key, Instruction value)
-
addInstruction
public void addInstruction(java.lang.String key, PatternProducer value)
-
addInstruction
public void addInstruction(java.lang.String key, java.lang.String value)
-
preprocess
public java.lang.String preprocess(java.lang.String s, StaccatoParserContext context)
- Specified by:
preprocess
in interfacePreprocessor
-
-