public class ExecuteActionCommand extends java.lang.Object implements ShellCommand
ShellCommand
for executing an action in the Environment
Use the -h option for help information.Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
actionNameMap |
protected Domain |
domain |
protected joptsimple.OptionParser |
parser |
Constructor and Description |
---|
ExecuteActionCommand(Domain domain) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
actionArgs(java.util.List<java.lang.String> commandArgs) |
int |
call(BurlapShell shell,
java.lang.String argString,
java.util.Scanner is,
java.io.PrintStream os)
Executes this command.
|
java.lang.String |
commandName()
Returns the default name of this command.
|
protected joptsimple.OptionParser parser
protected java.util.Map<java.lang.String,java.lang.String> actionNameMap
protected Domain domain
public ExecuteActionCommand(Domain domain)
public java.lang.String commandName()
ShellCommand
commandName
in interface ShellCommand
public int call(BurlapShell shell, java.lang.String argString, java.util.Scanner is, java.io.PrintStream os)
ShellCommand
call
in interface ShellCommand
shell
- the calling BurlapShell
argString
- the argument string that was associated with this command.is
- a Scanner
that can be used to read input from a user.os
- a OutputStream
to write outputEnvironment
was changed.protected java.lang.String actionArgs(java.util.List<java.lang.String> commandArgs)