Modifier and Type | Method | Description |
---|---|---|
R |
CommandLine.DefaultExceptionHandler.handleExecutionException(CommandLine.ExecutionException ex,
CommandLine.ParseResult parseResult) |
Deprecated.
This implementation always simply rethrows the specified exception.
|
R |
CommandLine.IExceptionHandler2.handleExecutionException(CommandLine.ExecutionException ex,
CommandLine.ParseResult parseResult) |
Deprecated.
Handles a
ExecutionException that occurred while executing the Runnable or
Callable command and optionally returns a list of results. |
protected R |
CommandLine.AbstractHandler.throwOrExit(CommandLine.ExecutionException ex) |
Deprecated.
Convenience method for subclasses that throws the specified ExecutionException if no exit code was set,
or otherwise, if an exit code was set, prints the stacktrace of the specified exception
to the diagnostic error stream and calls
System.exit with the configured
exit code to terminate the currently running Java virtual machine. |
Modifier and Type | Method | Description |
---|---|---|
int |
CommandLine.AbstractParseResultHandler.execute(CommandLine.ParseResult parseResult) |
Deprecated.
|
int |
CommandLine.IExecutionStrategy.execute(CommandLine.ParseResult parseResult) |
"Executes" the user input and returns an exit code.
|
protected abstract R |
CommandLine.AbstractParseResultHandler.handle(CommandLine.ParseResult parseResult) |
Deprecated.
Processes the specified
ParseResult and returns the result as a list of objects. |
protected List<Object> |
CommandLine.RunAll.handle(CommandLine.ParseResult parseResult) |
Executes the top-level command and all subcommands as
Runnable or Callable . |
protected List<Object> |
CommandLine.RunFirst.handle(CommandLine.ParseResult parseResult) |
Executes the top-level
Runnable or Callable subcommand. |
protected List<Object> |
CommandLine.RunLast.handle(CommandLine.ParseResult parseResult) |
Executes the most specific
Runnable or Callable subcommand. |
R |
CommandLine.AbstractParseResultHandler.handleParseResult(CommandLine.ParseResult parseResult) |
Deprecated.
Prints help if requested, and otherwise calls
CommandLine.AbstractParseResultHandler.handle(CommandLine.ParseResult) . |
List<Object> |
CommandLine.IParseResultHandler.handleParseResult(List<CommandLine> parsedCommands,
PrintStream out,
CommandLine.Help.Ansi ansi) |
Deprecated.
Processes a List of
CommandLine objects resulting from successfully
parsing the command line arguments and optionally returns a list of results. |
R |
CommandLine.IParseResultHandler2.handleParseResult(CommandLine.ParseResult parseResult) |
Deprecated.
Processes the
ParseResult object resulting from successfully
parsing the command line arguments and returns a return value. |
Copyright © 2017–2019. All rights reserved.