public static class CharacterPattern.Matching extends Object
Esc [ A
, and if the
pattern recognized this as ArrowUp
, then this field has
a value like new KeyStroke(KeyType.ArrowUp)
true
, if appending appropriate characters at the end of the
sequence can produce a match.true
.Modifier and Type | Field | Description |
---|---|---|
KeyStroke |
fullMatch |
|
static CharacterPattern.Matching |
NOT_YET |
Re-usable result for "not yet" half-matches
|
boolean |
partialMatch |
public final KeyStroke fullMatch
public final boolean partialMatch
public static final CharacterPattern.Matching NOT_YET
public Matching(KeyStroke fullMatch)
fullMatch
- the KeyStroke that matched the sequencepublic Matching(boolean partialMatch, KeyStroke fullMatch)
For mismatches rather use null
and for "not yet" matches use NOT_YET.
Use this constructor, where a sequence may yield both fullMatch and
partialMatch or for merging result Matchings of multiple patterns.
partialMatch
- true if further characters could lead to a matchfullMatch
- The perfectly matching KeyStrokeCopyright © 2020. All rights reserved.