Package nz.org.riskscape.picocli
Class CommandLine.ParseResult.GroupMatch
java.lang.Object
nz.org.riskscape.picocli.CommandLine.ParseResult.GroupMatch
- Enclosing class:
- CommandLine.ParseResult
A group's multiplicity specifies how many matches of a group may
appear on the command line. This class models a single "match".
For example, this group:
(-a -b) (-a -b)
requires two matches of its arguments to fully match.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the containerGroupMatchContainer
of this match.group()
Returns theArgGroupSpec
of the containerGroupMatchContainer
of this match.boolean
isEmpty()
Returnstrue
if this match has no matched arguments and no matched subgroups.Returns matches for the subgroups, if any.matchedValues
(CommandLine.Model.ArgSpec argSpec) Returns the values matched for the specified argument, converted to the type of the argument.toString()
-
Method Details
-
isEmpty
public boolean isEmpty()Returnstrue
if this match has no matched arguments and no matched subgroups. -
group
Returns theArgGroupSpec
of the containerGroupMatchContainer
of this match. -
container
Returns the containerGroupMatchContainer
of this match. -
matchedSubgroups
public Map<CommandLine.Model.ArgGroupSpec,CommandLine.ParseResult.GroupMatchContainer> matchedSubgroups()Returns matches for the subgroups, if any. -
matchedValues
Returns the values matched for the specified argument, converted to the type of the argument. -
toString
-