- All Known Implementing Classes:
AltAndCharacterPattern
,BasicCharacterPattern
,CtrlAltAndCharacterPattern
,CtrlAndCharacterPattern
,EscapeSequenceCharacterPattern
,MouseCharacterPattern
,NormalCharacterPattern
,ScreenInfoCharacterPattern
public interface CharacterPattern
Used to compare a list of character if they match a particular pattern, and in that case, return the kind of
keystroke this pattern represents
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
This immutable class describes a matching result. -
Method Summary
Modifier and TypeMethodDescriptionGiven a list of characters, determine whether it exactly matches any known KeyStroke, and whether a longer sequence can possibly match.
-
Method Details
-
match
Given a list of characters, determine whether it exactly matches any known KeyStroke, and whether a longer sequence can possibly match.- Parameters:
seq
- of characters to check- Returns:
- see
Matching
-