Class ExecuteCommandCommand

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canExecute()
      Returns whether this command may be executed.
      void execute()
      Executes the command.
      @NotNull java.lang.String getCommandString()
      Returns the command as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecuteCommandCommand

        public ExecuteCommandCommand​(@NotNull
                                     @NotNull CommandExecutor commandExecutor,
                                     @NotNull
                                     @NotNull java.lang.String command,
                                     @NotNull
                                     @NotNull Macros macros)
        Creates a new instance.
        Parameters:
        commandExecutor - the command executor for executing the command
        command - the command to execute
        macros - the macros instance to use
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed
      • getCommandString

        @NotNull
        public @NotNull java.lang.String getCommandString()
        Description copied from interface: GUICommand2
        Returns the command as a string.
        Specified by:
        getCommandString in interface GUICommand2
        Returns:
        the command