Constructor and Description |
---|
ConsoleCommand(ConsoleIO consoleIO)
Constructor
|
ConsoleCommand(ConsoleIO consoleIO,
ConsoleState state)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute(String... parameters)
Execute the given parameters.
|
ConsoleIO |
getConsoleIO()
Get console IO
|
ConsoleState |
getConsoleState()
Get console state
|
String |
getHelpLong()
Get long description
|
String |
getHelpShort()
Get short description, small enough to fit on one console row
|
public ConsoleCommand(ConsoleIO consoleIO)
consoleIO
- public ConsoleCommand(ConsoleIO consoleIO, ConsoleState state)
consoleIO
- state
- public ConsoleIO getConsoleIO()
public ConsoleState getConsoleState()
public String getHelpShort()
getHelpShort
in interface Help
public String getHelpLong()
getHelpLong
in interface Help
public void execute(String... parameters) throws IOException
Command
execute
in interface Command
parameters
- parameters typed by userIOException
- if a problem occurs reading or writingCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.