public void generateTo(StringBuffer script) { if (TypeCommand.containsUnicode(myText)) { script.append(KeyCodeTypeCommand.PREFIX).append(" "); for (int i = 0; i < myKeyCodes.size(); i++) { Integer each = myKeyCodes.get(i); script.append(each.toString()); script.append(KeyCodeTypeCommand.MODIFIER_DELIMITER); script.append(myModifiers.get(i)); if (i < myKeyCodes.size() - 1) { script.append(KeyCodeTypeCommand.CODE_DELIMITER); } } script.append(" ").append(myText).append("\n"); } else { script.append(myText); script.append("\n"); } }