Packages

t

com.nthportal.shell.util

CommandExecutor

trait CommandExecutor extends CommandDelegator with Executable

Delegates the execution of a Command to one of a sequence of commands based on the arguments with which this is executed. That is, if the first argument with which this is executed is the name of a command (in CommandDelegator.commands), it will execute that command with the subsequent arguments.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommandExecutor
  2. Executable
  3. CommandDelegator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def commands: ImmutableIterable[Command]

    Returns a sequence of commands to which some behavior might be delegated.

    Returns a sequence of commands to which some behavior might be delegated.

    returns

    a sequence of commands to which some behavior might be delegated

    Attributes
    protected
    Definition Classes
    CommandDelegator
  2. abstract def noArgExecution(implicit sink: OutputSink): Unit

    The action (or "execution") to perform if this is executed with no arguments.

    The action (or "execution") to perform if this is executed with no arguments.

    sink

    the OutputSink to which to write output

    Attributes
    protected
  3. abstract def noSuchCommandExecution(command: String, args: ImmutableSeq[String])(implicit sink: OutputSink): Unit

    The execution to perform if the first argument with which this was executed does not match the name of any command in CommandDelegator.commands.

    The execution to perform if the first argument with which this was executed does not match the name of any command in CommandDelegator.commands.

    command

    the first argument with which this was executed, which is not a valid command

    args

    the remaining arguments with which this was executed

    sink

    the OutputSink to which to write output

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final lazy val commandsByName: Map[String, Command]

    A mapping of each command's name to itself.

    A mapping of each command's name to itself.

    Attributes
    protected
    Definition Classes
    CommandDelegator
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def execute(args: ImmutableSeq[String])(implicit sink: OutputSink): Unit

    Executes this with the given arguments.

    Executes this with the given arguments.

    args

    the arguments with which this should be executed

    sink

    an OutputSink to which output may be written during execution

    Definition Classes
    CommandExecutorExecutable
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Executable

Inherited from CommandDelegator

Inherited from AnyRef

Inherited from Any

Ungrouped