public static class CommandLine.ParseResult.GroupMatch extends Object
(-a -b) (-a -b)
requires two matches of its arguments to fully match.Modifier and Type | Method and Description |
---|---|
CommandLine.ParseResult.GroupMatchContainer |
container()
Returns the container
GroupMatchContainer of this match. |
CommandLine.Model.ArgGroupSpec |
group()
Returns the
ArgGroupSpec of the container GroupMatchContainer of this match. |
boolean |
isEmpty()
Returns
true if this match has no matched arguments and no matched subgroups. |
Map<CommandLine.Model.ArgGroupSpec,CommandLine.ParseResult.GroupMatchContainer> |
matchedSubgroups()
Returns matches for the subgroups, if any.
|
List<Object> |
matchedValues(CommandLine.Model.ArgSpec argSpec)
Returns the values matched for the specified argument, converted to the type of the argument.
|
String |
toString() |
public boolean isEmpty()
true
if this match has no matched arguments and no matched subgroups.public CommandLine.Model.ArgGroupSpec group()
ArgGroupSpec
of the container GroupMatchContainer
of this match.public CommandLine.ParseResult.GroupMatchContainer container()
GroupMatchContainer
of this match.public Map<CommandLine.Model.ArgGroupSpec,CommandLine.ParseResult.GroupMatchContainer> matchedSubgroups()
public List<Object> matchedValues(CommandLine.Model.ArgSpec argSpec)