org.lsst.ccs.shell
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.

Author:
ASG

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

name

public abstract 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 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 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 String header
Specify the string to output before command's output, i.e. some explanations.

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


Copyright © 2013 LSST. All Rights Reserved.