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.CommandParserResults.-
Method Summary
Modifier and TypeMethodDescriptionerrors()Gets parsing errors.of(List<CommandParser.CommandParserResult> results, List<String> positional, List<CommandParser.CommandParserException> errors) Gets an instance of a defaultCommandParser.CommandParserResults.Gets the unmapped positional arguments.results()Gets the results.
-
Method Details
-
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(List<CommandParser.CommandParserResult> results, List<String> positional, List<CommandParser.CommandParserException> errors) Gets an instance of a defaultCommandParser.CommandParserResults.- Parameters:
results- the resultspositional- the list of positional argumentserrors- the parsing errors- Returns:
- a new instance of results
-