Methods Summary |
---|
public abstract void | execute(java.lang.String commandName, org.gudy.azureus2.ui.console.ConsoleInput console, java.util.List arguments)execute the command with the specified name using the specified arguments
|
public abstract java.lang.String | getCommandDescriptions()return high-level help about the commands supported by this object.
|
public java.util.Set | getCommandNames()returns the set of command names that this command understands.
eg: the 'quit' command might understand 'quit', 'q', 'bye'
other commands might actually have several command names and
execute different code depending upon the command name
return Collections.unmodifiableSet(commandNames);
|
public java.lang.String | getHelpExtra()print some 'extra' help that is displayed after all of the help commands.
eg: explain some options that are common to a group of commands
return null;
|
public void | printHelp(java.io.PrintStream out, java.util.List args)do nothing by default
out.println("No further help for this command");
|
protected final void | printHelp(java.io.PrintStream out, java.lang.String arg)helper method if subclasses want to print out help for a particular subcommand
List args;
if( arg != null )
{
args = new ArrayList();
args.add(arg);
}
else
args = Collections.EMPTY_LIST;
printHelp(out, args);
|