Command.Output
Constructor and Description |
---|
DocCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Command.Output output,
String... params)
Executes the given command with the given parameters.
|
String |
getDescription()
Returns a short description of the command.
|
String |
getName()
Returns the name of the part.
|
public void execute(Command.Output output, String... params) throws Exception
Command
execute
in interface Command
output
- provides access to the output interface used to generate outputparams
- provides the parameters entered in the consoleException
- in case of an error. Throw a HandledException
to
signal, that all logging and handling has already been performed.
Any other exception will be logged and reported as system error.@Nonnull public String getName()
Named
The return value is used as part name when the Register annotation is processed.
public String getDescription()
Command
getDescription
in interface Command
Copyright © 2018. All rights reserved.