public class ModifiersSpec extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
alt |
int |
ctrl |
static int |
OFF |
static int |
ON |
int |
shift |
static int |
UNKNOWN |
Constructor and Description |
---|
ModifiersSpec(int alt,
int shift,
int ctrl) |
ModifiersSpec(java.lang.String str)
'A' = Alt, 'S' = Shift, 'C' = Ctrl
Lowercase signifies off and '?' means unknown/optional.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
match(int a,
boolean knownValue) |
private static boolean |
match(int a,
int knownValue) |
boolean |
matchWithKnown(boolean knownAlt,
boolean knownShift,
boolean knownCtrl) |
boolean |
matchWithKnown(int knownAlt,
int knownShift,
int knownCtrl) |
public static final int ON
public static final int OFF
public static final int UNKNOWN
public int alt
public int shift
public int ctrl
public ModifiersSpec(java.lang.String str)
str
- 3 letters string defining modifierspublic ModifiersSpec(int alt, int shift, int ctrl)
public boolean matchWithKnown(int knownAlt, int knownShift, int knownCtrl)
public boolean matchWithKnown(boolean knownAlt, boolean knownShift, boolean knownCtrl)
private static boolean match(int a, int knownValue)
private static boolean match(int a, boolean knownValue)