Package org.jline.console
Class ConsoleEngine.ExecutionResult
java.lang.Object
org.jline.console.ConsoleEngine.ExecutionResult
- Enclosing interface:
ConsoleEngine
Class representing the result of executing a command.
An ExecutionResult encapsulates the status code and result value of a command execution.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionResult
(int status, Object result) Creates a new execution result with the specified status code and result value. -
Method Summary
-
Constructor Details
-
ExecutionResult
Creates a new execution result with the specified status code and result value.- Parameters:
status
- the status code of the command executionresult
- the result value of the command execution
-
-
Method Details
-
status
public int status()Returns the status code of the command execution.- Returns:
- the status code
-
result
Returns the result value of the command execution.- Returns:
- the result value
-