Class StringArgumentCommandToken
java.lang.Object
com.symphony.bdk.core.activity.parsing.StringArgumentCommandToken
- All Implemented Interfaces:
ArgumentCommandToken
,CommandToken
,RegexCommandToken
@API(status=INTERNAL)
public class StringArgumentCommandToken
extends Object
implements RegexCommandToken, ArgumentCommandToken
A command token matching a single word and put in a given argument.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringArgumentCommandToken
newInstance
(String pattern) Creates new instance of ArgumentCommandToken with pattern in the format: "{argName}"Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.symphony.bdk.core.activity.parsing.RegexCommandToken
getTokenType, matches
-
Field Details
-
ARGUMENT_VALUE_REGEX
- See Also:
-
argumentName
-
-
Constructor Details
-
StringArgumentCommandToken
-
-
Method Details
-
newInstance
Creates new instance of ArgumentCommandToken with pattern in the format: "{argName}"- Parameters:
pattern
- the pattern in the format: "{argName}"- Returns:
- a new instance of an ArgumentCommandToken
-
getRegexPattern
- Specified by:
getRegexPattern
in interfaceRegexCommandToken
- Returns:
- the regex pattern the word must follow in order to match.
-
getArgumentName
- Specified by:
getArgumentName
in interfaceArgumentCommandToken
- Returns:
- the argument name.
-