Module com.github.rvesse.airline
Class SingleCommandParser<T>
java.lang.Object
com.github.rvesse.airline.parser.AbstractParser<T>
com.github.rvesse.airline.parser.AbstractCommandParser<T>
com.github.rvesse.airline.parser.command.SingleCommandParser<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse
(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, Iterable<GlobalRestriction> restrictions, Iterable<String> args) parseWithResult
(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, Iterable<GlobalRestriction> restrictions, Iterable<String> args) protected void
validate
(ParseState<T> state, List<GlobalRestriction> restrictions) Validates the parser stateMethods inherited from class com.github.rvesse.airline.parser.AbstractCommandParser
applyAliases, parseCommand, parseCommandOptionsAndArguments, parseGroup, tryParse, tryParse, tryParse
Methods inherited from class com.github.rvesse.airline.parser.AbstractParser
getTypeConverter
-
Constructor Details
-
SingleCommandParser
public SingleCommandParser()
-
-
Method Details
-
parseWithResult
public ParseResult<T> parseWithResult(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, Iterable<GlobalRestriction> restrictions, Iterable<String> args) -
parse
public T parse(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, Iterable<GlobalRestriction> restrictions, Iterable<String> args) -
validate
Validates the parser stateThis includes things like verifying we ended in an appropriate state, that all required options and arguments were present etc
- Parameters:
state
- Parser state
-