public interface CommandParser
CommandRegistration. A command is
 always identified by a set of words like
 command subcommand1 subcommand2 and remaining part of it are options
 which this interface intercepts and translates into format we can understand.| Modifier and Type | Interface and Description | 
|---|---|
| static class  | CommandParser.CommandParserException | 
| static interface  | CommandParser.CommandParserResultResult of a parsing  CommandOptionwith an argument. | 
| static interface  | CommandParser.CommandParserResultsResults of a  CommandParser. | 
| static class  | CommandParser.DefaultCommandParserDefault implementation of a  CommandParser. | 
| static class  | CommandParser.DefaultCommandParserResultDefault implementation of a  CommandParser.CommandParserResult. | 
| static class  | CommandParser.DefaultCommandParserResultsDefault implementation of a  CommandParser.CommandParserResults. | 
| static class  | CommandParser.MissingOptionException | 
| Modifier and Type | Method and Description | 
|---|---|
| static CommandParser | of()Gets an instance of a default command parser. | 
| static CommandParser | of(org.springframework.core.convert.ConversionService conversionService)Gets an instance of a default command parser. | 
| CommandParser.CommandParserResults | parse(List<CommandOption> options,
     String[] args)Parse options with a given arguments. | 
CommandParser.CommandParserResults parse(List<CommandOption> options, String[] args)
options - the command optionsargs - the argumentsstatic CommandParser of()
static CommandParser of(org.springframework.core.convert.ConversionService conversionService)
conversionService - the conversion serviceCopyright © 2022. All rights reserved.