Interface CommandParser.Operation

Enclosing class:
CommandParser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CommandParser.Operation
An operation represents a single command that can be executed on a server based on a series of arguments that define how it behaves.
Author:
Stephen G. Ware
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(Server server, String[] arguments)
    Executes the command on the given server and configured by the given arguments.
  • Method Details

    • execute

      void execute(Server server, String[] arguments) throws Exception
      Executes the command on the given server and configured by the given arguments.
      Parameters:
      server - the server on which the command will be executed
      arguments - the arguments that define what the command will do
      Throws:
      Exception - if a problem occurs when executing the command