- enableVmHeadlessMode() - Static method in class org.imca_cat.prgm.Programs
-
Enables the VM's headless mode (i.e., the mode that does not require a
display, keyboard, nor mouse).
- error(String, Object...) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi
-
Writes the message, prefixed with the error prefix, to the standard error
stream.
- error(String, Object...) - Method in interface org.imca_cat.prgm.SensibleUi
-
Writes the message at the error level.
- ERROR - org.imca_cat.prgm.StandardIo
-
The standard error stream.
- errorOffset() - Method in exception org.imca_cat.prgm.PromptChoicesSyntaxException
-
Returns the zero-based character position of the syntax error.
- errorPrefix(String) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets the prefix for error messages.
- errorPrefix(String) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets the prefix for error messages.
- EXIT_FAILURE - Static variable in interface org.imca_cat.prgm.Program
-
Exit status 1
indicating failure.
- EXIT_SUCCESS - Static variable in interface org.imca_cat.prgm.Program
-
Exit status 0
indicating success.
- exitStatus() - Method in exception org.imca_cat.prgm.ProgramDieException
-
Returns the exit status of the program.
- exitStatus(Throwable) - Method in class org.imca_cat.prgm.AbstractProgram
-
Returns an exit status for the specified exception.
- exitStatus(Throwable) - Method in interface org.imca_cat.prgm.Program
-
Returns an exit status for the specified exception.
- printError(Throwable) - Method in class org.imca_cat.prgm.AbstractProgram
-
Prints an error for the specified exception.
- printError(Throwable) - Method in interface org.imca_cat.prgm.Program
-
Prints an error for the specified exception.
- printError(Throwable) - Method in class org.imca_cat.prgm.SensibleProgram
-
Prints an error for the specified exception.
- printf(String, Object...) - Method in class org.imca_cat.prgm.ConsoleProgramConsole
-
- printf(String, Object...) - Method in interface org.imca_cat.prgm.ProgramConsole
-
Prints the message.
- printStackTrace(boolean) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets whether exception stack traces should be printed.
- printStackTrace(boolean) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets whether exception stack traces should be printed.
- Program - Interface in org.imca_cat.prgm
-
A computer program.
- ProgramConsole - Interface in org.imca_cat.prgm
-
A computer program console.
- ProgramDieException - Exception in org.imca_cat.prgm
-
Indicates a
Program
has terminated.
- ProgramDieException(int) - Constructor for exception org.imca_cat.prgm.ProgramDieException
-
Constructs an instance with the specified exit status.
- ProgramDieException(String, int) - Constructor for exception org.imca_cat.prgm.ProgramDieException
-
Constructs an instance with the specified reason message and exit status.
- ProgramDieException(String, String, int) - Constructor for exception org.imca_cat.prgm.ProgramDieException
-
Constructs an instance with the specified reason message, localized reason
message, and exit status.
- programName(String) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets the name of the program.
- programName(String) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets the name of the program.
- Programs - Class in org.imca_cat.prgm
-
A class providing static utility methods related to programs.
- prompt(String, String) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi
-
Prompts the user with the specified prompt message and default response.
- prompt(String, String) - Method in interface org.imca_cat.prgm.SensibleUi
-
Prompts the user with the specified prompt message and default response.
- promptChoice(String, int, String) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi
-
Prompts the user with the specified prompt message, default response, and
choices.
- promptChoice(String, int, String) - Method in interface org.imca_cat.prgm.SensibleUi
-
Prompts the user with the specified prompt message, default response, and
choices.
- PromptChoicesSyntaxException - Exception in org.imca_cat.prgm
-
Indicates a syntax error in a UI prompt-choices string.
- PromptChoicesSyntaxException(int) - Constructor for exception org.imca_cat.prgm.PromptChoicesSyntaxException
-
Constructs an instance with the specified error offset.
- PromptChoicesSyntaxException(int, Throwable) - Constructor for exception org.imca_cat.prgm.PromptChoicesSyntaxException
-
Constructs an instance with the specified error offset and cause.
- PromptChoicesSyntaxException(String, int) - Constructor for exception org.imca_cat.prgm.PromptChoicesSyntaxException
-
Constructs an instance with the specified detail message and error offset.
- PromptChoicesSyntaxException(String, int, Throwable) - Constructor for exception org.imca_cat.prgm.PromptChoicesSyntaxException
-
Constructs an instance with the specified detail message, error offset,
and cause.
- promptPassword(String, char[]) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi
-
Prompts the user for a password with echoing turned off and with the
specified prompt message and default password.
- promptPassword(String, char[]) - Method in interface org.imca_cat.prgm.SensibleUi
-
Prompts the user for a password with echoing turned off and with the
specified prompt message and default password.
- SensibleProgram<T extends SensibleUi> - Class in org.imca_cat.prgm
-
A skeletal computer program that behaves in a sensible way.
- SensibleProgram(Object, T) - Constructor for class org.imca_cat.prgm.SensibleProgram
-
Constructs an instance with the specified critical section lock and UI.
- SensibleProgram(T) - Constructor for class org.imca_cat.prgm.SensibleProgram
-
Constructs an instance with an
Object
critical section lock and
the specified UI.
- SensibleUi - Interface in org.imca_cat.prgm
-
- StandardIo - Enum in org.imca_cat.prgm
-
The standard I/O types of a
Program
.
- StandardIoException - Exception in org.imca_cat.prgm
-
- StandardIoException(StandardIo) - Constructor for exception org.imca_cat.prgm.StandardIoException
-
Constructs an instance with the specified type of I/O.
- StandardIoException(StandardIo, Throwable) - Constructor for exception org.imca_cat.prgm.StandardIoException
-
Constructs an instance with the specified type of I/O and cause.
- status(String, Object...) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi
-
Writes the message, prefixed with the status prefix, to the underlying
stream if the quiet
level flag is not set.
- status(String, Object...) - Method in interface org.imca_cat.prgm.SensibleUi
-
Writes the message at the status level.
- statusPrefix(String) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets the prefix for status messages.
- statusPrefix(String) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets the prefix for status messages.
- statusTo(StandardIo) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Selects which of this builder's output streams status messages should be
written to.
- statusTo(StandardIo) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Selects which of this builder's output streams status messages should be
written to.
- stderr(Appendable) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets the standard error stream.
- stderr(Appendable) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets the standard error stream.
- stdout(Appendable) - Method in interface org.imca_cat.prgm.ConfigurableSensibleUi.Builder
-
Sets the standard output stream.
- stdout(Appendable) - Method in class org.imca_cat.prgm.DefaultConfigurableSensibleUi.Builder
-
Sets the standard output stream.
- systemInstance() - Static method in class org.imca_cat.prgm.ConsoleProgramConsole
-
Returns the system ConsoleProgramConsole
instance for the system
Console
.