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 |
|---|---|
int |
getArgumentCount()
Get the number of arguments associated with this command
|
String |
getCommand()
Get the root command name (the zeroth token)
|
boolean |
isEmpty()
Test if the command is completely empty (no tokens)
|
public TokenizedCommand(String command)
command - The command string to be tokenized.public String getCommand()
getCommand in interface BasicCommandpublic int getArgumentCount()
getArgumentCount in interface BasicCommandpublic boolean isEmpty()
true only if the command is empty.Copyright © 2013 LSST. All Rights Reserved.