@API(status=INTERNAL) public interface RegexCommandToken extends CommandToken
V4Message
if it mathces a given regex.Modifier and Type | Method and Description |
---|---|
java.util.regex.Pattern |
getRegexPattern() |
default java.lang.Class<?> |
getTokenType() |
default boolean |
matches(java.lang.Object inputToken) |
java.util.regex.Pattern getRegexPattern()
default boolean matches(java.lang.Object inputToken)
matches
in interface CommandToken
inputToken
- the input token, can be of type String
, Mention
, Cashtag
or Hashtag
default java.lang.Class<?> getTokenType()
getTokenType
in interface CommandToken
String
, Mention
, Cashtag
or Hashtag