Annotation Interface Group
Marks a class as providing command group metadata
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameName of the group.If the name contains spaces then this is interpreted as a sub-group, for example
foo barwould be interpreted as a groupfoowith a sub-groupbar. All the other fields on this annotation are interpreted as applying to the sub-group being specified.If you also wished to place commands into the
foogroup you would need to specify this separately. Since only one instance of an annotation can appear on any given class you would need to use theGroupsannotation to place multipleGroupannotations on a class.- Returns:
- Name
-
description
-
defaultCommand
Class<?> defaultCommandDefault command class for the group (optional)- Returns:
- Default Command for the group
- Default:
com.github.rvesse.airline.annotations.Group.NO_DEFAULT.class
-
commands
Class<?>[] commandsCommand classes to add to the group (optional)- Returns:
- Command classes for the group
- Default:
{}
-