Uses of Class
picocli.CommandLine.Model.ArgGroupSpec
-
Uses of CommandLine.Model.ArgGroupSpec in picocli
Fields in picocli declared as CommandLine.Model.ArgGroupSpecModifier and TypeFieldDescriptionprivate CommandLine.Model.ArgGroupSpec
CommandLine.Model.ArgSpec.group
private final CommandLine.Model.ArgGroupSpec
CommandLine.ParseResult.GroupMatchContainer.group
private CommandLine.Model.ArgGroupSpec
CommandLine.Model.ArgGroupSpec.parentGroup
Fields in picocli with type parameters of type CommandLine.Model.ArgGroupSpecModifier and TypeFieldDescriptionprivate final List
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.groups
(package private) Map
<CommandLine.Model.ArgGroupSpec, CommandLine.ParseResult.GroupMatchContainer> CommandLine.ParseResult.GroupMatch.matchedSubgroups
private final List
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.ArgGroupSpec.Builder.subgroups
private final List
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.ArgGroupSpec.subgroups
private final List
<CommandLine.Model.ArgGroupSpec> CommandLine.ParseResult.GroupMatchContainer.unmatchedSubgroups
Methods in picocli that return CommandLine.Model.ArgGroupSpecModifier and TypeMethodDescriptionCommandLine.Model.ArgGroupSpec.Builder.build()
Returns a validArgGroupSpec
instance.private static CommandLine.Model.ArgGroupSpec
CommandLine.Model.CommandReflection.buildArgGroupForMember
(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec) (package private) static CommandLine.Model.ArgGroupSpec
CommandLine.Model.CommandReflection.extractArgGroupSpec
(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec, boolean annotationsAreMandatory) CommandLine.Model.ArgSpec.group()
Returns the groups this option or positional parameter belongs to, ornull
if this option is not part of a group.CommandLine.ParseResult.GroupMatch.group()
Returns theArgGroupSpec
of the containerGroupMatchContainer
of this match.CommandLine.ParseResult.GroupMatchContainer.group()
Returns theArgGroupSpec
whose matches are captured in thisGroupMatchContainer
.CommandLine.Model.ArgGroupSpec.messages
(CommandLine.Model.Messages msgs) Sets the Messages for this ArgGroupSpec, and returns this ArgGroupSpec.CommandLine.Model.ArgGroupSpec.parentGroup()
Returns the parent group that this group is part of, ornull
if this group is not part of a composite.Methods in picocli that return types with arguments of type CommandLine.Model.ArgGroupSpecModifier and TypeMethodDescriptionCommandLine.Model.CommandSpec.argGroups()
Returns the argument groups in this command.private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(Collection<CommandLine.Model.ArgGroupSpec> groups, Set<CommandLine.Model.ArgGroupSpec> result) private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.ArgGroupSpec> result) CommandLine.ParseResult.GroupMatch.matchedSubgroups()
Returns matches for the subgroups, if any.CommandLine.Help.optionSectionGroups()
Returns the list ofArgGroupSpec
instances in this command that have a non-null
heading, most deeply nested argument groups first.CommandLine.Model.ArgGroupSpec.Builder.subgroups()
Returns the list of subgroups that this group is composed of.CommandLine.Model.ArgGroupSpec.subgroups()
Return the subgroups that this group is composed of; may be empty but notnull
.Methods in picocli with parameters of type CommandLine.Model.ArgGroupSpecModifier and TypeMethodDescriptionCommandLine.Model.CommandSpec.addArgGroup
(CommandLine.Model.ArgGroupSpec group) Adds the specified argument group to the groups in this command.private CommandLine.Model.CommandSpec
CommandLine.Model.CommandSpec.addArgGroup
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.OptionSpec> groupOptions, Set<CommandLine.Model.PositionalParamSpec> groupPositionals) private void
CommandLine.Model.CommandSpec.addGroupArgsToCommand
(CommandLine.Model.ArgGroupSpec group, Map<String, CommandLine.Model.ArgGroupSpec> added, Set<CommandLine.Model.OptionSpec> groupOptions, Set<CommandLine.Model.PositionalParamSpec> groupPositionals) CommandLine.Model.ArgGroupSpec.Builder.addSubgroup
(CommandLine.Model.ArgGroupSpec group) Adds the specified group to the list of subgroups that this group is composed of.private void
CommandLine.Interpreter.applyGroupDefaults
(CommandLine.IDefaultValueProvider defaultValueProvider, CommandLine.Model.ArgGroupSpec group, List<CommandLine.Model.ArgSpec> required, Set<CommandLine.Model.ArgSpec> initialized) private void
CommandLine.Model.CommandSpec.check
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.ArgGroupSpec> existing) private void
CommandLine.Interpreter.clear
(CommandLine.Model.ArgGroupSpec group) private boolean
CommandLine.ParseResult.GroupMatchContainer.containsRequiredSubgroups
(CommandLine.Model.ArgGroupSpec argGroupSpec) CommandLine.ParseResult.GroupMatchContainer.createGroupMatchContainer
(CommandLine.Model.ArgGroupSpec group, CommandLine.ParseResult.GroupMatchContainer parent, CommandLine commandLine) (package private) CommandLine.ParseResult.GroupMatchContainer
CommandLine.ParseResult.GroupMatchContainer.findLastMatchContainer
(CommandLine.Model.ArgGroupSpec group) (package private) List
<CommandLine.ParseResult.GroupMatchContainer> CommandLine.ParseResult.GroupMatchContainer.findMatchContainers
(CommandLine.Model.ArgGroupSpec group, List<CommandLine.ParseResult.GroupMatchContainer> result) CommandLine.ParseResult.findMatches
(CommandLine.Model.ArgGroupSpec group) Returns the matches for the specified argument group.private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.ArgGroupSpec> result) private boolean
CommandLine.ParseResult.GroupMatchContainer.isGroupEffectivelyOptional
(CommandLine.Model.ArgGroupSpec argGroupSpec) A group is optional if its minimummultiplicity
is zero otherwise, if the group has at least one required option and all required options have default values Conversely, a group is required if if its minimummultiplicity
is1
or more AND either the group has no required options or the group has at least one required option without a default valueboolean
CommandLine.Model.ArgGroupSpec.isSubgroupOf
(CommandLine.Model.ArgGroupSpec group) Returnstrue
if this group is a subgroup (or a nested sub-subgroup, to any level of depth) of the specified group,false
otherwise.private boolean
CommandLine.ParseResult.GroupMatchContainer.requiredOptionsExistAndAllHaveDefaultValues
(CommandLine.Model.ArgGroupSpec argGroupSpec) (package private) void
CommandLine.ParseResult.GroupMatchContainer.updateUnmatchedGroups
(CommandLine.Model.ArgGroupSpec group) private static void
CommandLine.Model.CommandReflection.validateArgGroupSpec
(CommandLine.Model.ArgGroupSpec result, boolean hasArgAnnotation, String className) Method parameters in picocli with type arguments of type CommandLine.Model.ArgGroupSpecModifier and TypeMethodDescriptionprivate void
CommandLine.Model.CommandSpec.addGroupArgsToCommand
(CommandLine.Model.ArgGroupSpec group, Map<String, CommandLine.Model.ArgGroupSpec> added, Set<CommandLine.Model.OptionSpec> groupOptions, Set<CommandLine.Model.PositionalParamSpec> groupPositionals) private void
CommandLine.Model.CommandSpec.check
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.ArgGroupSpec> existing) private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(Collection<CommandLine.Model.ArgGroupSpec> groups, Set<CommandLine.Model.ArgGroupSpec> result) private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(Collection<CommandLine.Model.ArgGroupSpec> groups, Set<CommandLine.Model.ArgGroupSpec> result) private Set
<CommandLine.Model.ArgGroupSpec> CommandLine.Model.CommandSpec.flatten
(CommandLine.Model.ArgGroupSpec group, Set<CommandLine.Model.ArgGroupSpec> result) private String
CommandLine.Help.optionListGroupSections
(List<CommandLine.Model.ArgGroupSpec> groupList, Comparator<CommandLine.Model.OptionSpec> optionSort, CommandLine.Help.IParamLabelRenderer paramLabelRenderer) private static void
CommandLine.Help.optionSectionGroups
(List<CommandLine.Model.ArgGroupSpec> groups, List<CommandLine.Model.ArgGroupSpec> result) private boolean
CommandLine.ParseResult.GroupMatchContainer.simplifyErrorMessageForSingleGroup
(Map<CommandLine.Model.ArgGroupSpec, List<List<CommandLine.ParseResult.GroupMatch>>> matchesPerGroup, CommandLine commandLine) Constructors in picocli with parameters of type CommandLine.Model.ArgGroupSpecModifierConstructorDescription(package private)