@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface Group
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
Name of the group.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
commands
Command classes to add to the group (optional)
|
Class<?> |
defaultCommand
Default command class for the group (optional)
|
String |
description
Description of the group.
|
boolean |
hidden
Whether the group should be hidden
|
public abstract String name
If the name contains spaces then this is interpreted as a sub-group, for
example foo bar would be interpreted as a group foo with
a sub-group bar. 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 foo group 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 the Groups
annotation to place multiple Group annotations on a class.
public abstract String description
public abstract Class<?> defaultCommand
public abstract Class<?>[] commands
Copyright © 2012–2022. All rights reserved.