public static class CommandContext.DefaultCommandContext extends Object implements CommandContext
CommandContext.CommandContext.DefaultCommandContext| Modifier and Type | Method and Description | 
|---|---|
| CommandRegistration | getCommandRegistration()Gets a command registration. | 
| <T> T | getOptionValue(String name)Gets an mapped option value. | 
| CommandParser.CommandParserResults | getParserResults()Gets a command option parser results. | 
| String[] | getRawArgs()Gets a raw args passed into a currently executing command. | 
| org.jline.terminal.Terminal | getTerminal()Gets a terminal. | 
| boolean | hasMappedOption(String name)Gets if option has been mapped. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic String[] getRawArgs()
CommandContextgetRawArgs in interface CommandContextpublic boolean hasMappedOption(String name)
CommandContexthasMappedOption in interface CommandContextname - the option namepublic CommandParser.CommandParserResults getParserResults()
CommandContextgetParserResults in interface CommandContextpublic CommandRegistration getCommandRegistration()
CommandContextgetCommandRegistration in interface CommandContextpublic <T> T getOptionValue(String name)
CommandContextgetOptionValue in interface CommandContextT - the type to map toname - the option namepublic org.jline.terminal.Terminal getTerminal()
CommandContextgetTerminal in interface CommandContextCopyright © 2022. All rights reserved.