public class RawCommand extends Object implements BasicCommand
| Constructor and Description |
|---|
RawCommand(String commandName,
List<Object> arguments)
Builds a Raw Command.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getArgument(int index)
Get a specific command argument
|
int |
getArgumentCount()
Get the number of arguments associated with this command
|
Object[] |
getArguments() |
String |
getCommand()
Get the root command name (the zeroth token)
|
static RawCommand |
toRawCommand(BasicCommand command,
Method method,
InputConversionEngine engine)
Convert a BasicCommand to a RawCommand.
|
public String getCommand()
getCommand in interface BasicCommandpublic Object getArgument(int index)
index - The index of the argumentpublic Object[] getArguments()
public int getArgumentCount()
getArgumentCount in interface BasicCommandpublic static RawCommand toRawCommand(BasicCommand command, Method method, InputConversionEngine engine) throws CommandInvocationException
command - The input commandmethod - The method thar will be invoked, used to find the type of the command argumentsengine - The input conversion engine that will be used to convert strings to objectsCommandInvocationException - If the command cannot be successfully convertedCopyright © 2014 LSST. All Rights Reserved.