asg.cliche
Annotation Type Command


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Command

Annotation for commands. Allows to specify the name of a command, otherwise method's name is used.


Optional Element Summary
 java.lang.String abbrev
          Specify the shortcut name for the command.
 java.lang.String description
          Specify the description of the command.
 java.lang.String header
          Specify the string to output before command's output, i.e. some explanations.
 java.lang.String name
          Allows to override default command name, which is derived from method's name
 

name

public abstract java.lang.String name
Allows to override default command name, which is derived from method's name

Returns:
"" or null if default name is used, user-specified name otherwise.
Default:
""

description

public abstract java.lang.String description
Specify the description of the command. Default description (if this property is not set) says "methodName(Arg1Type, Arg2Type,...) : ReturnType".

Returns:
command's description or "" if not set.
Default:
""

abbrev

public abstract java.lang.String abbrev
Specify the shortcut name for the command. If not set, if the name attribute is not set as well, the Shell takes the first letter of each word (void selectUser() --- select-user --- su).

Returns:
command's abbreviation or "" if not set.
Default:
""

header

public abstract java.lang.String header
Specify the string to output before command's output, i.e. some explanations.

Returns:
command's header or "" if not set.
Default:
""