@ConvertedBy(value=CommandInfo.Converter.class) @Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface CommandInfo
Annotation
that contains basic information on command usage, declaration,
and requirements.
This annotation should be used for "primary" documented
information, and when applicable, developers who are using the
DocGenerator
returned by DocGenerator.getDefaultGenerator()
,
and who are not implementing their own CommandDoc systems, should
use this in place of creating a new annotation and converter if
possible.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
description
A description of this command, what it does, and
(if needed) elaboration on the
usage() . |
java.lang.String[] |
name
The name and aliases of a command.
|
java.lang.String[] |
requirements
A series of prerequisites or requirements a user
must have to use this command.
|
java.lang.String |
usage
A short format or explanation of a command's usage.
|
public abstract java.lang.String[] name
public abstract java.lang.String usage
public abstract java.lang.String description
usage()
.