Interface CommandParser.CommandParserResults
- All Known Implementing Classes:
CommandParser.DefaultCommandParserResults
- Enclosing interface:
- CommandParser
public static interface CommandParser.CommandParserResults
Results of a
CommandParser
. Basically contains a list of CommandParser.CommandParserResult
s.-
Method Summary
Modifier and TypeMethodDescriptionerrors()
Gets parsing errors.of
(CommandRegistration registration, List<CommandParser.CommandParserResult> results, List<String> positional, List<CommandParser.CommandParserException> errors) Gets an instance of a defaultCommandParser.CommandParserResults
.Gets the unmapped positional arguments.Gets the registration.results()
Gets the results.
-
Method Details
-
registration
CommandRegistration registration()Gets the registration.- Returns:
- the registration
-
results
List<CommandParser.CommandParserResult> results()Gets the results.- Returns:
- the results
-
positional
Gets the unmapped positional arguments.- Returns:
- the unmapped positional arguments
-
errors
List<CommandParser.CommandParserException> errors()Gets parsing errors.- Returns:
- the parsing errors
-
of
static CommandParser.CommandParserResults of(CommandRegistration registration, List<CommandParser.CommandParserResult> results, List<String> positional, List<CommandParser.CommandParserException> errors) Gets an instance of a defaultCommandParser.CommandParserResults
.- Parameters:
registration
- the registrationresults
- the resultspositional
- the list of positional argumentserrors
- the parsing errors- Returns:
- a new instance of results
-