| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getList(java.lang.String name)
Gets the list of values
|
java.lang.String |
getRawText()
Gets the raw text of this command
|
java.lang.String |
getType()
Gets the type of the parsed command
|
java.lang.String |
getVariable(java.lang.String name)
Gets the String value
|
java.lang.String |
getVariable(java.lang.String name,
java.lang.String defaultValue)
Gets the String value
|
int |
getVariableInt(java.lang.String name,
int defaultValue)
Gets the integer value
|
long |
getVariableLong(java.lang.String name,
long defaultValue)
Gets the long value
|
boolean |
hasKeyWord(java.lang.String word)
Does this parsed command have the given key word
|
void |
parse(java.lang.String text)
Parses the given command
|
@CheckReturnValue @Nonnull java.lang.String getType()
@CheckReturnValue
boolean hasKeyWord(@Nonnull
java.lang.String word)
throws java.lang.Exception
word - the key word to check forjava.lang.Exception - a serious problemvoid parse(@Nonnull
java.lang.String text)
throws java.lang.Exception
text - the command to parsejava.lang.Exception - a serious problem@CheckReturnValue @Nonnull java.lang.String getRawText()
@CheckReturnValue
int getVariableInt(@Nonnull
java.lang.String name,
int defaultValue)
throws java.lang.Exception
name - the variable to getdefaultValue - default value if variable is blankjava.lang.Exception - a serious problem@CheckReturnValue
long getVariableLong(@Nonnull
java.lang.String name,
long defaultValue)
throws java.lang.Exception
name - the variable to getdefaultValue - the default value if the variable is blankjava.lang.Exception - a serious problem@CheckReturnValue
@Nullable
java.lang.String getVariable(@Nonnull
java.lang.String name,
@Nullable
java.lang.String defaultValue)
throws java.lang.Exception
name - the variable to getdefaultValue - the defaultValue if the variable is blankjava.lang.Exception - a serious problem@CheckReturnValue
@Nullable
java.lang.String getVariable(@Nonnull
java.lang.String name)
throws java.lang.Exception
name - the variable to getjava.lang.Exception - a serious problem@CheckReturnValue
@Nonnull
java.lang.String[] getList(@Nonnull
java.lang.String name)
throws java.lang.Exception
name - the variable to getjava.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.