public class CommandExecutorImpl extends java.lang.Object implements CommandExecutor
Commands
.Modifier and Type | Field and Description |
---|---|
private CommandQueue |
commandQueue
The command queue for sending commands.
|
private Commands |
commands
The
Commands to consider. |
Constructor and Description |
---|
CommandExecutorImpl(CommandQueue commandQueue,
Commands commands)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(java.lang.CharSequence commandLine)
Executes a command or a list of commands.
|
@NotNull private final CommandQueue commandQueue
public CommandExecutorImpl(@NotNull CommandQueue commandQueue, @NotNull Commands commands)
commandQueue
- the command queue for sending commandscommands
- the commands to considerpublic void executeCommand(@NotNull java.lang.CharSequence commandLine)
executeCommand
in interface CommandExecutor
commandLine
- the commands to execute