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, wait
of
public String[] getRawArgs()
CommandContext
getRawArgs
in interface CommandContext
public boolean hasMappedOption(String name)
CommandContext
hasMappedOption
in interface CommandContext
name
- the option namepublic CommandParser.CommandParserResults getParserResults()
CommandContext
getParserResults
in interface CommandContext
public CommandRegistration getCommandRegistration()
CommandContext
getCommandRegistration
in interface CommandContext
public <T> T getOptionValue(String name)
CommandContext
getOptionValue
in interface CommandContext
T
- the type to map toname
- the option namepublic org.jline.terminal.Terminal getTerminal()
CommandContext
getTerminal
in interface CommandContext
Copyright © 2022. All rights reserved.