public class InputKeysParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
InputKeysParser.CharInfo |
Modifier and Type | Field and Description |
---|---|
protected boolean |
alt_on |
protected boolean |
ctrl_on |
protected static java.lang.String |
DEL |
protected static java.lang.String |
END |
protected static java.lang.String |
QUOTE |
protected static java.lang.String |
SHIFT |
protected static java.lang.String |
SHIFT_END_DELETE |
protected boolean |
shift_on |
protected static java.lang.String |
SHIFT_PLUS |
protected static java.lang.String |
SPACE |
Constructor and Description |
---|
InputKeysParser(INIFileReader config) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEvents(java.util.Vector keys,
java.lang.String keychar) |
java.lang.String |
antiParse(java.util.List<RobotKeyEvent> keys)
Note: This method do the opposite work of
parseInput(String) |
protected void |
clearModifiers(java.util.Vector keys)
Add keyRelease events to the keystroke Vector and clear boolean flags for active modifiers.
|
protected void |
createCommonStrings() |
protected java.util.Vector |
createPasteEvent() |
char |
getAltChar() |
char |
getCtrlChar() |
char |
getEnterChar() |
protected int |
getKeyCode(java.lang.String _char)
Retrieve the stored "standard" keycode of the provided character.
|
char |
getLeftBraceChar() |
char |
getLeftParenChar() |
char |
getRightBraceChar() |
char |
getRightParenChar() |
java.lang.String |
getSHIFT_END_DELETE() |
char |
getShiftChar() |
static void |
main(java.lang.String[] args)
simple test\debugging only
|
protected java.util.Vector |
parseBraces(java.lang.String content)
Process the string previously extracted from between braces.
|
java.util.Vector |
parseChars(java.lang.String input) |
java.util.Vector |
parseInput(java.lang.String input) |
protected java.util.Vector |
parseParens(java.lang.String content)
Process the string previously extracted from between parens.
|
protected java.util.Vector |
parseString(java.lang.String content)
Convert literal string characters into their corresponding keycodes.
|
protected boolean alt_on
protected boolean shift_on
protected boolean ctrl_on
protected static java.lang.String SHIFT_END_DELETE
protected static java.lang.String SHIFT
protected static java.lang.String SHIFT_PLUS
protected static java.lang.String END
protected static java.lang.String DEL
protected static java.lang.String QUOTE
protected static java.lang.String SPACE
public InputKeysParser(INIFileReader config)
public char getShiftChar()
public char getAltChar()
public char getCtrlChar()
public char getEnterChar()
public char getLeftParenChar()
public char getRightParenChar()
public char getLeftBraceChar()
public char getRightBraceChar()
public java.lang.String getSHIFT_END_DELETE()
protected void createCommonStrings()
protected void addEvents(java.util.Vector keys, java.lang.String keychar)
public java.lang.String antiParse(java.util.List<RobotKeyEvent> keys)
parseInput(String)
keys
- List of RobotKeyEventCreateUnicodeMap
public java.util.Vector parseInput(java.lang.String input)
public java.util.Vector parseChars(java.lang.String input)
protected int getKeyCode(java.lang.String _char)
_char
- -- String of one char.protected java.util.Vector parseString(java.lang.String content)
content
- -- the string of characters to convert to keycodes.protected java.util.Vector parseParens(java.lang.String content)
content
- -- the string in between parens ( )protected java.util.Vector parseBraces(java.lang.String content)
content
- -- the string in between braces { }protected void clearModifiers(java.util.Vector keys)
keys
- Vector to add keyRelease events to.protected java.util.Vector createPasteEvent()
public static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.