Class ActionCommand

    • Method Detail

      • getActionClass

        public Class<? extends Action> getActionClass()
      • getScope

        public String getScope()
        Description copied from interface: Command
        Retrieve the scope of this command.
        Specified by:
        getScope in interface Command
        Returns:
        the command scope.
      • getName

        public String getName()
        Description copied from interface: Command
        Retrieve the name of this command.
        Specified by:
        getName in interface Command
        Returns:
        the command name.
      • getDescription

        public String getDescription()
        Description copied from interface: Command
        Retrieve the description of this command. This short command description will be printed when using the help command.
        Specified by:
        getDescription in interface Command
        Returns:
        the command description.
      • getCompleter

        public Completer getCompleter​(boolean scoped)
        Description copied from interface: Command
        Retrieve the completer associated with this command.
        Specified by:
        getCompleter in interface Command
        Parameters:
        scoped - whether the command is invoked from a subshell or not
        Returns:
        the Completer to use
      • getParser

        public Parser getParser()
        Description copied from interface: Command
        Retrieve the parser associated with this command or null for the default one.
        Specified by:
        getParser in interface Command
        Returns:
        the command parser.
      • execute

        public Object execute​(Session session,
                              List<Object> arguments)
                       throws Exception
        Description copied from interface: Function
        Execute this function within the given Session and with the given arguments.
        Specified by:
        execute in interface Function
        Parameters:
        session - the current session
        arguments - the arguments of this function
        Returns:
        the result
        Throws:
        Exception - if any exception occurs
      • createNewAction

        protected Action createNewAction​(Session session)