@API(status=INTERNAL) public class StringArgumentCommandToken extends java.lang.Object implements RegexCommandToken, ArgumentCommandToken
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENT_VALUE_REGEX |
protected java.lang.String |
argumentName |
Modifier | Constructor and Description |
---|---|
protected |
StringArgumentCommandToken(java.lang.String argumentName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArgumentName() |
java.util.regex.Pattern |
getRegexPattern() |
static StringArgumentCommandToken |
newInstance(java.lang.String pattern)
Creates new instance of ArgumentCommandToken with pattern in the format: "{argName}"
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTokenType, matches
public static final java.lang.String ARGUMENT_VALUE_REGEX
protected java.lang.String argumentName
protected StringArgumentCommandToken(java.lang.String argumentName)
public static StringArgumentCommandToken newInstance(java.lang.String pattern)
pattern
- the pattern in the format: "{argName}"public java.util.regex.Pattern getRegexPattern()
getRegexPattern
in interface RegexCommandToken
public java.lang.String getArgumentName()
getArgumentName
in interface ArgumentCommandToken