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 boolean |
match(int a,
boolean knownValue) |
private 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
- public 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 boolean match(int a, int knownValue)
private boolean match(int a, boolean knownValue)