public class PmCommandInvocation extends Object implements org.aesh.command.invocation.CommandInvocation
| Modifier and Type | Method and Description |
|---|---|
org.aesh.command.Executor<? extends org.aesh.command.invocation.CommandInvocation> |
buildExecutor(String line) |
void |
executeCommand(String input) |
org.aesh.readline.AeshContext |
getAeshContext() |
org.aesh.command.invocation.CommandInvocationConfiguration |
getConfiguration() |
PrintStream |
getErr() |
String |
getHelpInfo(String commandName) |
PrintStream |
getOut() |
PmSession |
getPmSession() |
org.aesh.readline.Prompt |
getPrompt() |
org.aesh.command.shell.Shell |
getShell() |
org.aesh.readline.action.KeyAction |
input() |
String |
inputLine() |
String |
inputLine(org.aesh.readline.Prompt prompt) |
void |
print(String msg) |
void |
print(String msg,
boolean paging) |
void |
println(String msg) |
void |
println(String msg,
boolean paging) |
void |
setPrompt(org.aesh.readline.Prompt prompt) |
void |
stop() |
public PrintStream getOut()
public PrintStream getErr()
public PmSession getPmSession()
public org.aesh.command.shell.Shell getShell()
getShell in interface org.aesh.command.invocation.CommandInvocationpublic void setPrompt(org.aesh.readline.Prompt prompt)
setPrompt in interface org.aesh.command.invocation.CommandInvocationpublic org.aesh.readline.Prompt getPrompt()
getPrompt in interface org.aesh.command.invocation.CommandInvocationpublic String getHelpInfo(String commandName)
getHelpInfo in interface org.aesh.command.invocation.CommandInvocationpublic void stop()
stop in interface org.aesh.command.invocation.CommandInvocationpublic org.aesh.readline.AeshContext getAeshContext()
getAeshContext in interface org.aesh.command.invocation.CommandInvocationpublic void print(String msg)
print in interface org.aesh.command.invocation.CommandInvocationpublic void println(String msg)
println in interface org.aesh.command.invocation.CommandInvocationpublic org.aesh.command.invocation.CommandInvocationConfiguration getConfiguration()
getConfiguration in interface org.aesh.command.invocation.CommandInvocationpublic org.aesh.readline.action.KeyAction input()
throws InterruptedException
input in interface org.aesh.command.invocation.CommandInvocationInterruptedExceptionpublic String inputLine() throws InterruptedException
inputLine in interface org.aesh.command.invocation.CommandInvocationInterruptedExceptionpublic String inputLine(org.aesh.readline.Prompt prompt) throws InterruptedException
inputLine in interface org.aesh.command.invocation.CommandInvocationInterruptedExceptionpublic void executeCommand(String input) throws org.aesh.command.CommandNotFoundException, org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException, org.aesh.command.validator.CommandValidatorException, org.aesh.command.CommandException, InterruptedException, IOException
executeCommand in interface org.aesh.command.invocation.CommandInvocationorg.aesh.command.CommandNotFoundExceptionorg.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionorg.aesh.command.validator.CommandValidatorExceptionorg.aesh.command.CommandExceptionInterruptedExceptionIOExceptionpublic org.aesh.command.Executor<? extends org.aesh.command.invocation.CommandInvocation> buildExecutor(String line) throws org.aesh.command.CommandNotFoundException, org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException, org.aesh.command.validator.CommandValidatorException, IOException
buildExecutor in interface org.aesh.command.invocation.CommandInvocationorg.aesh.command.CommandNotFoundExceptionorg.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionorg.aesh.command.validator.CommandValidatorExceptionIOExceptionpublic void print(String msg, boolean paging)
print in interface org.aesh.command.invocation.CommandInvocationpublic void println(String msg, boolean paging)
println in interface org.aesh.command.invocation.CommandInvocationCopyright © 2016–2018 JBoss by Red Hat. All rights reserved.