Class CommandParser.AstCommandParser
java.lang.Object
org.springframework.shell.command.CommandParser.AstCommandParser
- 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.AstCommandParser, CommandParser.CommandParserException, CommandParser.CommandParserResult, CommandParser.CommandParserResults, CommandParser.DefaultCommandParserResult, CommandParser.DefaultCommandParserResults
-
Constructor Summary
ConstructorDescriptionAstCommandParser
(Map<String, CommandRegistration> registrations, ParserConfig configuration, org.springframework.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionParse options with a given arguments.
-
Constructor Details
-
AstCommandParser
public AstCommandParser(Map<String, CommandRegistration> registrations, ParserConfig configuration, org.springframework.core.convert.ConversionService conversionService)
-
-
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:
args
- the arguments- Returns:
- parsed results
-