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.
- Alphabetic
- By Inheritance
- CommandExecutor
- Executable
- CommandDelegator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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
-
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
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- CommandExecutor → Executable
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )