public class TokenizedCommand extends Object implements BasicCommand
| Constructor and Description |
|---|
TokenizedCommand(String command)
Builds a Tokenized command from an unparsed string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArgument(int index)
Get a specific command argument
|
int |
getArgumentCount()
Get the number of arguments associated with this command
|
String[] |
getArguments() |
String |
getCommand()
Get the root command name (the zeroth token)
|
boolean |
isEmpty()
Test if the command is completely empty (no tokens)
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprettyToStringpublic TokenizedCommand(String command)
command - The command string to be tokenized.public String getCommand()
getCommand in interface BasicCommandpublic String getArgument(int index)
getArgument in interface BasicCommandindex - The index of the argumentpublic String[] getArguments()
getArguments in interface BasicCommandpublic int getArgumentCount()
getArgumentCount in interface BasicCommandpublic boolean isEmpty()
true only if the command is empty.Copyright © 2015 LSST. All rights reserved.