Uses of Class
readycli.Command.ExitCause
-
Uses of Command.ExitCause in readycli
Methods in readycli that return Command.ExitCause Modifier and Type Method Description Command.ExitCause
Command. execute(java.lang.String arguments)
Executes the command on a list of arguments encoded as a string command-line, asCommand.execute(String, PrintStream, InputStream)
, and uses the standard in/output to interact with the user.Command.ExitCause
Command. execute(java.lang.String[] args)
Executes the command on an array of arguments already tokenized, using the standardI
/O
to interact with the user.Command.ExitCause
Command. execute(java.lang.String[] args, java.io.PrintStream output, java.io.InputStream input)
Executes the command on an array of arguments already tokenized.Command.ExitCause
Command. execute(java.lang.String arguments, java.io.PrintStream output, java.io.InputStream input)
Executes the command on a list of arguments encoded as a string command-line.
This method automatically splits the command-line taking care of single quote ('), double quote (") and escaped characters, as a UNIX-like operative system does, then it passes the result list of arguments to theCommand.execute(List, PrintStream, InputStream)
method
Single quotes (') and double quotes (") characters can be escaped preceding them with a backslash (\) character: \", \'.
The backslash (\) character can be escaped itself in the same way: \\.
Note that: the first token of the passed command-line is parsed as an argument of the command and not as the name of the command itself.Command.ExitCause
Command. execute(java.util.List<java.lang.String> arguments)
Executes the command on a list of arguments already tokenized, using the standardI
/O
to interact with the user.
For more details, please refer toCommand.execute(List, PrintStream, InputStream)
;Command.ExitCause
Command. execute(java.util.List<java.lang.String> arguments, java.io.PrintStream output, java.io.InputStream input)
Executes the command on a list of arguments already tokenized.
Note that: the first token is parsed as an argument of the command and not as the name of the command itself.static Command.ExitCause
Command.ExitCause. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Command.ExitCause[]
Command.ExitCause. values()
Returns an array containing the constants of this enum type, in the order they are declared.