Class CommandParser.DefaultCommandParser
java.lang.Object
org.springframework.shell.command.CommandParser.DefaultCommandParser
- All Implemented Interfaces:
CommandParser
- Enclosing interface:
- CommandParser
Default implementation of a
CommandParser
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandParser
CommandParser.CommandParserException, CommandParser.CommandParserResult, CommandParser.CommandParserResults, CommandParser.DefaultCommandParser, CommandParser.DefaultCommandParserResult, CommandParser.DefaultCommandParserResults, CommandParser.MissingOptionException, CommandParser.NotEnoughArgumentsOptionException, CommandParser.OptionException, CommandParser.TooManyArgumentsOptionException, CommandParser.UnrecognisedOptionException
-
Method Summary
Modifier and TypeMethodDescriptionparse
(List<CommandOption> options, String[] args) Parse options with a given arguments.
-
Method Details
-
parse
Description copied from interface:CommandParser
Parse options with a given arguments. May throw various runtime exceptions depending how parser is configure. For example if required option is missing an exception is thrown.- Specified by:
parse
in interfaceCommandParser
- Parameters:
options
- the command optionsargs
- the arguments- Returns:
- parsed results
-