Interface RegexCommandToken
- All Superinterfaces:
CommandToken
- All Known Implementing Classes:
StaticCommandToken
,StringArgumentCommandToken
CommandToken which matches a word in a
V4Message
if it mathces a given regex.-
Method Summary
-
Method Details
-
getRegexPattern
Pattern getRegexPattern()- Returns:
- the regex pattern the word must follow in order to match.
-
matches
-
getTokenType
- Specified by:
getTokenType
in interfaceCommandToken
- Returns:
- the actual type accepted by this token:
String
,Mention
,Cashtag
orHashtag
-